undo: treat a cut-until-end-of-buffer like a backward marked region
This fixes https://savannah.gnu.org/bugs/?58024.
Bug existed since commit ac612545
from two weeks go.
master
parent
b17309b652
commit
34d38fe1c6
|
@ -1012,7 +1012,7 @@ void add_undo(undo_type action, const char *message)
|
|||
break;
|
||||
#endif
|
||||
case CUT_TO_EOF:
|
||||
u->xflags |= INCLUDED_LAST_LINE;
|
||||
u->xflags |= (INCLUDED_LAST_LINE | WAS_MARKED_BACKWARDS);
|
||||
break;
|
||||
case ZAP:
|
||||
case CUT:
|
||||
|
|
Loading…
Reference in New Issue