Commit 66b0fc5b authored by Robert Siemborski's avatar Robert Siemborski
Browse files

cuting newline-related totsize fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@66 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
...@@ -197,6 +197,7 @@ int do_cut_text(void) ...@@ -197,6 +197,7 @@ int do_cut_text(void)
tmp = fileptr; tmp = fileptr;
fileage = fileptr; fileage = fileptr;
add_to_cutbuffer(fileptr->prev); add_to_cutbuffer(fileptr->prev);
totsize--; /* get the newline */
totlines--; totlines--;
fileptr->prev = NULL; fileptr->prev = NULL;
edit_update(fileage); edit_update(fileage);
...@@ -216,6 +217,7 @@ int do_cut_text(void) ...@@ -216,6 +217,7 @@ int do_cut_text(void)
(fileptr->next)->prev = fileptr->prev; (fileptr->next)->prev = fileptr->prev;
current = fileptr->next; current = fileptr->next;
totlines--; totlines--;
totsize--; /* get the newline */
} else { } else {
/* we're deleteing the last line /* we're deleteing the last line
and replacing it with a dummy line, and replacing it with a dummy line,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment