summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Maddela <e7appew@gmail.com>2018-01-09 03:37:26 +1100
committerCarlos Maddela <e7appew@gmail.com>2018-12-29 12:17:20 +0000
commit9ebe9653c15b1bf9c0ef57be37d9021b0ec259d2 (patch)
treec1da0dea4742a1c21f6ddfe133c7962c3ba7a70c
parentd2b453a896e8529fdc6f83dfb20d1c57a374e441 (diff)
If started in read-only mode, keep this mode for subsequent files too.
Description: If started in read-only mode, keep this mode for subsequent files too. Author: Carlos Maddela <e7appew@gmail.com> Last-Update: 2018-01-09 Gbp-Pq: Name enforce_readonly_mode.patch
-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 ();