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.
This commit is contained in:
Benno Schulenberg 2020-03-22 19:16:22 +01:00
parent b17309b652
commit 34d38fe1c6
1 changed files with 1 additions and 1 deletions

View File

@ -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: