commit 92befae93dff751d20ece51a6e3db98972c0db71
parent dbbc14e0ac5b02c3744929683578193f42f9f9fc
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 23 Jun 2017 10:43:52 +0200
startup: don't mark the buffer as modified when in view mode
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nano.c b/src/nano.c
@@ -1177,7 +1177,7 @@ bool scoop_stdin(void)
terminal_init();
doupdate();
- if (openfile->totsize > 0)
+ if (!ISSET(VIEW_MODE) && openfile->totsize > 0)
set_modified();
return TRUE;