From 14140d5249680f350146b6a7a488e6215c307fce Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 30 Apr 2019 10:45:20 +0200 Subject: [PATCH] tweaks: don't bother renumbering the lines in the cutbuffer The numbering of the lines in the cutbuffer is irrelevant. These lines will be renumbered when it matters: when they get pasted. --- src/nano.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/nano.c b/src/nano.c index 6da8a90b..03e89056 100644 --- a/src/nano.c +++ b/src/nano.c @@ -319,10 +319,7 @@ void extract_buffer(linestruct **buffer_top, linestruct **buffer_bot, if (*buffer_top == NULL) { *buffer_top = openfile->filetop; *buffer_bot = openfile->filebot; - renumber_from(*buffer_top); } else { - linestruct *was_bottom = *buffer_bot; - /* Tack the data of the first line of the text onto the data of * the last line in the given buffer. */ (*buffer_bot)->data = charealloc((*buffer_bot)->data, @@ -341,8 +338,6 @@ void extract_buffer(linestruct **buffer_top, linestruct **buffer_bot, (*buffer_bot)->next->prev = *buffer_bot; *buffer_bot = openfile->filebot; } - - renumber_from(was_bottom); } /* Since the text has now been saved, remove it from the file buffer. */