diff options
author | Joe <rbo@gmx.us> | 2024-01-31 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-31 20:20:20 +0100 |
commit | 808cc138f401cb5d398567f66ef4987f8be5af7a (patch) | |
tree | 89dcfa89744ce055c9bdeacb13f1bd1c983a3fc2 /src/i_events.go | |
parent | mkay (diff) | |
download | hardflip-808cc138f401cb5d398567f66ef4987f8be5af7a.tar.gz hardflip-808cc138f401cb5d398567f66ef4987f8be5af7a.tar.bz2 hardflip-808cc138f401cb5d398567f66ef4987f8be5af7a.tar.xz hardflip-808cc138f401cb5d398567f66ef4987f8be5af7a.tar.zst hardflip-808cc138f401cb5d398567f66ef4987f8be5af7a.zip |
decrypting gpg at parse time was too fucking slow i had to overcome
Diffstat (limited to 'src/i_events.go')
-rw-r--r-- | src/i_events.go | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/i_events.go b/src/i_events.go index e70b480..becc2ee 100644 --- a/src/i_events.go +++ b/src/i_events.go @@ -241,7 +241,6 @@ func i_delete_host(data *HardData) error { // screen events such as keypresses func i_events(data *HardData) { - var err error ui := &data.ui event := ui.s.PollEvent() switch event := event.(type) { @@ -297,19 +296,7 @@ func i_events(data *HardData) { if data.litems.curr == nil { break } else if data.litems.curr.is_dir() == false { - ui.s.Fini() - c_exec(data.litems.curr.Host, data.opts.Term) - if data.opts.Loop == false { - os.Exit(0) - } else { - if ui.s, err = tcell.NewScreen(); err != nil { - c_die("view", err) - } - if err := ui.s.Init(); err != nil { - c_die("view", err) - } - ui.s.SetStyle(ui.style[DEF_STYLE]) - } + c_exec(data.litems.curr.Host, data.opts, ui) } else if data.litems.curr.Dirs != nil && data.folds[data.litems.curr.Dirs] == nil { i_fold_dir(data, data.litems.curr) |