mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-30 00:23:28 +03:00
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.
This commit is contained in:
parent
17aa9371b5
commit
14140d5249
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user