From 0acae37704685fc95970760a90145059b16c4903 Mon Sep 17 00:00:00 2001 From: sammy <38820196+TorchedSammy@users.noreply.github.com> Date: Tue, 11 May 2021 18:12:58 -0400 Subject: [PATCH] chore: revert "fix: reordering init code [...]" this reverts commit 8d5e36bcdebdbb8c00dfb02cd3175ce89dbd3a7d. apparently, when i reordered the code it caused hilbish's history to be emptied and not work when used interactively i literally have no idea why --- main.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 234f046..6f32065 100644 --- a/main.go +++ b/main.go @@ -108,12 +108,15 @@ func main() { } } + go HandleSignals() LuaInit() - RunLogin() - RunInput(*cmdflag) RunConfig(*configflag) + readline.Completer = readline.FilenameCompleter + readline.LoadHistory(homedir + "/.hilbish-history") + + RunInput(*cmdflag) if getopt.NArgs() > 0 { err := l.DoFile(getopt.Arg(0)) if err != nil { @@ -123,11 +126,6 @@ func main() { os.Exit(0) } - readline.Completer = readline.FilenameCompleter - readline.LoadHistory(homedir + "/.hilbish-history") - - go HandleSignals() - for interactive { running = false