nano

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

commit 9f1c3c85135d795018747fa281d17c97efed54f2
parent d1521c584d793931ec6b7ebe0884c77949a708c7
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 30 Mar 2020 16:51:34 +0200

memory: plug a leak, by freeing the cutbuffer after a bracketed paste

Also, remove an unneeded assignment -- the 'cutbottom' variable is
needed only when consecutives cuts (^K) or copies (M-6) are made.

Diffstat:
Msrc/nano.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -1483,10 +1483,9 @@ void suck_up_input_and_paste_it(void) beep(); } - cutbottom = line; - paste_text(); + free_lines(cutbuffer); cutbuffer = was_cutbuffer; } #endif