diff --git a/ChangeLog b/ChangeLog index d2fcef3e6bf6a2df84e689ad6b13cbe680942697..70c3b7a7713ad3d2c68b9601618c32aaafe7f8c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,10 +16,6 @@ CVS code - do_cut_text() - If keep_cutbuffer is FALSE, only blow away the text in the cutbuffer if the cutbuffer isn't empty. (DLR) - do_uncut_text() - - No longer duplicate Pico's adding an extra magicline to the - file if uncutting leaves the cursor on the current one, as - it's actually a bug. (DLR) - global.c: shortcut_init() - Fix misplaced #endif keeping the "Full Justify" shortcut in diff --git a/src/cut.c b/src/cut.c index 1d4cac6c289532166f2f62e98c6ef05e89ec4cc0..6815925098bf0ac6e6ac242c6b82e46bdc87dbf3 100644 --- a/src/cut.c +++ b/src/cut.c @@ -156,9 +156,17 @@ void do_uncut_text(void) return; /* Add a copy of the text in the cutbuffer to the current filestruct - * at the current cursor position. */ + * at the current cursor position. Note that if the text in the + * cutbuffer doesn't end in a newline and the current cursor + * position is on the magicline, a new magicline will be added. */ copy_from_filestruct(cutbuffer, cutbottom); + /* If the text in the cutbuffer does end in a newline and the + * current cursor position is on the magicline, add a new magicline + * for consistency. */ + if (current == filebot) + new_magicline(); + /* Set the current place we want to where the text from the * cutbuffer ends. */ placewewant = xplustabs();