diff options
author | Carlos Maddela <e7appew@gmail.com> | 2018-01-09 03:37:26 +1100 |
---|---|---|
committer | Carlos Maddela <e7appew@gmail.com> | 2018-12-29 12:17:20 +0000 |
commit | 9ebe9653c15b1bf9c0ef57be37d9021b0ec259d2 (patch) | |
tree | c1da0dea4742a1c21f6ddfe133c7962c3ba7a70c | |
parent | d2b453a896e8529fdc6f83dfb20d1c57a374e441 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 (); |