From 808cc138f401cb5d398567f66ef4987f8be5af7a Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 31 Jan 2024 20:20:20 +0100 Subject: decrypting gpg at parse time was too fucking slow i had to overcome --- src/i_events.go | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/i_events.go') 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) -- cgit v1.2.3