summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index 36e3bb9..9ca0be3 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -565,7 +565,8 @@ handleInterrupt (int i)
cursor_y = MAIN_TOP_LINE;
cursor_x = 10;
offset = 0x00;
- Globals.modified = 0;
+ if (Globals.modified != READ_ONLY)
+ Globals.modified = 0;
Globals.tabb = 0;
}
redraw ();