nano

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

commit f6b6bc47d619fd675c74c563c3e76152e0b64307
parent a692b01c040e60543cdd3cdfd19821b6517ac757
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 29 Jan 2020 11:19:34 +0100

tweaks: remove a redundant call, as there is nothing to free there

At that point, 'u->cutbuffer' will always be NULL, either from the
original creation of the INSERT undo item, or by having been freed
and set to NULL by do_redo().

Diffstat:
Msrc/text.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/src/text.c b/src/text.c @@ -627,7 +627,6 @@ void do_undo(void) openfile->mark_x = u->mark_begin_x; goto_line_posx(u->lineno, u->begin); cut_marked(NULL); - free_lines(u->cutbuffer); u->cutbuffer = cutbuffer; cutbuffer = oldcutbuffer; break;