From 9ebe9653c15b1bf9c0ef57be37d9021b0ec259d2 Mon Sep 17 00:00:00 2001 From: Carlos Maddela Date: Tue, 9 Jan 2018 03:37:26 +1100 Subject: 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 Last-Update: 2018-01-09 Gbp-Pq: Name enforce_readonly_mode.patch --- src/misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (); -- cgit v1.2.3