build: fix compilation for --enable-{tiny,nanorc,color}

This commit is contained in:
Benno Schulenberg 2022-04-22 11:44:36 +02:00
parent a52ac1375a
commit 450bfa7a75
1 changed files with 2 additions and 2 deletions

View File

@ -2054,8 +2054,8 @@ bool replace_buffer(const char *filename, undo_type action, const char *operatio
add_undo(COUPLE_BEGIN, operation);
#endif
/* When nothing is marked, start at the top of the buffer. */
if (!openfile->mark) {
/* When replacing the whole buffer, start cutting at the top. */
if (action == CUT_TO_EOF) {
openfile->current = openfile->filetop;
openfile->current_x = 0;
}