nano

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

commit 66b0fc5b6cbbd7ca8e4927f190600cd875f1e5a7
parent deca3e727ae65fee2016c50a73fcdbe86170fbe0
Author: Robert Siemborski <rjs3@andrew.cmu.edu>
Date:   Tue,  4 Jul 2000 21:29:24 +0000

cuting newline-related totsize fixes


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

Diffstat:
Mcut.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/cut.c b/cut.c @@ -197,6 +197,7 @@ int do_cut_text(void) tmp = fileptr; fileage = fileptr; add_to_cutbuffer(fileptr->prev); + totsize--; /* get the newline */ totlines--; fileptr->prev = NULL; edit_update(fileage); @@ -216,6 +217,7 @@ int do_cut_text(void) (fileptr->next)->prev = fileptr->prev; current = fileptr->next; totlines--; + totsize--; /* get the newline */ } else { /* we're deleteing the last line and replacing it with a dummy line,