commit 14140d5249680f350146b6a7a488e6215c307fce
parent 17aa9371b5f6fa684b55fc8a02c588b7ae6123b4
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 30 Apr 2019 10:45:20 +0200
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.
Diffstat:
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git 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. */