diff options
author | joe <rbo@gmx.us> | 2025-08-28 10:39:42 +0200 |
---|---|---|
committer | joe <rbo@gmx.us> | 2025-08-28 10:39:42 +0200 |
commit | 8a58c7c57fef3f2a33faef07ecfebc85ed442877 (patch) | |
tree | e92a87f0daa1b837ef2894320ccd338849309346 /src/i_ui.go | |
parent | fuck it work so well (diff) | |
download | hardflip-8a58c7c57fef3f2a33faef07ecfebc85ed442877.tar.gz hardflip-8a58c7c57fef3f2a33faef07ecfebc85ed442877.tar.bz2 hardflip-8a58c7c57fef3f2a33faef07ecfebc85ed442877.tar.xz hardflip-8a58c7c57fef3f2a33faef07ecfebc85ed442877.tar.zst hardflip-8a58c7c57fef3f2a33faef07ecfebc85ed442877.zip |
n option good
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]) |