aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_ui.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-23 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-23 20:20:20 +0100
commit18d207ef1777d9c713192f39f671ae1902f8c94a (patch)
tree4cf77b9c23b1386f436e655a960841e5e143051d /src/i_ui.go
parentgood (diff)
downloadhardflip-18d207ef1777d9c713192f39f671ae1902f8c94a.tar.gz
hardflip-18d207ef1777d9c713192f39f671ae1902f8c94a.tar.bz2
hardflip-18d207ef1777d9c713192f39f671ae1902f8c94a.tar.xz
hardflip-18d207ef1777d9c713192f39f671ae1902f8c94a.tar.zst
hardflip-18d207ef1777d9c713192f39f671ae1902f8c94a.zip
segv
Diffstat (limited to '')
-rw-r--r--src/i_ui.go4
1 files changed, 3 insertions, 1 deletions
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
}