]> git.wh0rd.org Git - nano.git/commitdiff
set totsize properly when deleting a character or backspacing over it
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 28 Dec 2004 22:36:13 +0000 (22:36 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 28 Dec 2004 22:36:13 +0000 (22:36 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2205 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/nano.c

index fd439aa404a69edfb7f66e05a6d73d13a596c998..57dd7babcc24cb124960b9659cb47c214a498dc9 100644 (file)
@@ -1198,6 +1198,7 @@ void do_delete(void)
        if (current_x < mark_beginx && mark_beginbuf == current)
            mark_beginx -= char_len;
 #endif
+       totsize -= char_len;
     } else if (current != filebot && (current->next != filebot ||
        current->data[0] == '\0')) {
        /* We can delete the line before filebot only if it is blank: it