diff --git a/src/text.c b/src/text.c index 9e35ec14..b62941e3 100644 --- a/src/text.c +++ b/src/text.c @@ -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: