diff options
Diffstat (limited to 'src/i_ui.go')
-rw-r--r-- | src/i_ui.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/i_ui.go b/src/i_ui.go index e824908..277ac0a 100644 --- a/src/i_ui.go +++ b/src/i_ui.go @@ -783,7 +783,7 @@ func i_init_styles(ui *HardUI, styles HardStyle) { type key_event_mode_func func(*HardData, *HardUI, tcell.EventKey) bool -func i_ui(data_dir string) { +func i_ui(data_dir string, no_loop bool) { home_dir, _ := os.UserHomeDir() ui := HardUI{} opts := HardOpts{} @@ -804,6 +804,9 @@ func i_ui(data_dir string) { } else { opts = c_get_options(conf_dir, &load_err) } + if no_loop == true { + opts.Loop = false + } styles := c_get_styles(conf_dir, &load_err) i_init_styles(&ui, styles) ui.s.SetStyle(ui.style[DEF_STYLE]) |