nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit c8ade4474130c7521d5b9ec7d8a0712103a72f7e
parent a9b9913c6bd44d8ef97c1b975128cb492aab25c7
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Tue, 28 Dec 2004 22:36:13 +0000

set totsize properly when deleting a character or backspacing over it


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2205 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/nano.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -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