undo: after undoing a cut, don't remove the magicline if we're on it
This fixes https://savannah.gnu.org/bugs/?55332.master
parent
798695ff1e
commit
d0982536a7
|
@ -671,7 +671,8 @@ void undo_cut(undo *u)
|
||||||
copy_from_buffer(u->cutbuffer);
|
copy_from_buffer(u->cutbuffer);
|
||||||
|
|
||||||
/* If the final line was originally cut, remove the extra magicline. */
|
/* If the final line was originally cut, remove the extra magicline. */
|
||||||
if ((u->xflags & WAS_FINAL_LINE) && !ISSET(NO_NEWLINES))
|
if ((u->xflags & WAS_FINAL_LINE) && !ISSET(NO_NEWLINES) &&
|
||||||
|
openfile->current != openfile->filebot)
|
||||||
remove_magicline();
|
remove_magicline();
|
||||||
|
|
||||||
if (!(u->xflags & WAS_MARKED_FORWARD) && u->type != PASTE)
|
if (!(u->xflags & WAS_MARKED_FORWARD) && u->type != PASTE)
|
||||||
|
|
Loading…
Reference in New Issue