From 18d207ef1777d9c713192f39f671ae1902f8c94a Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 23 Jan 2024 20:20:20 +0100 Subject: segv --- src/i_ui.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/i_ui.go') diff --git a/src/i_ui.go b/src/i_ui.go index ea2a593..83cdf4d 100644 --- a/src/i_ui.go +++ b/src/i_ui.go @@ -328,7 +328,9 @@ func i_load_ui(data_dir string, ui.mode = LOAD_MODE ldirs, load_err := c_load_data_dir(data_dir, opts, ui) litems := c_load_litems(ldirs) - ui.mode = NORMAL_MODE + if ui.mode != ERROR_MODE { + ui.mode = NORMAL_MODE + } if len(load_err) == 0 { load_err = nil } -- cgit v1.2.3