diff options
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 2dd3f0f..95df042 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -981,7 +981,7 @@ static void do_backspace(struct frame *fr, struct presentation *p) if ( fr->pos == 0 ) return; - olen = strlen(fr->sc); + olen = strlen(fr->sc) - fr->pos + 1; tlen = 1; /* FIXME: Length of character before cursor */ memmove(fr->sc+fr->pos-tlen, fr->sc+fr->pos, olen); |