diff --git a/src/nano.c b/src/nano.c index c6db6dd3..4d5e7ea6 100644 --- a/src/nano.c +++ b/src/nano.c @@ -303,7 +303,7 @@ void do_exit(void) /* When unmodified, simply close. Else, when doing automatic saving * and the file has a name, simply save. Otherwise, ask the user. */ - if (!openfile->modified) + if (!openfile->modified || ISSET(VIEW_MODE)) choice = NO; else if (ISSET(SAVE_ON_EXIT) && openfile->filename[0] != '\0') choice = YES;