From 1539c8263660850b08a3a5fbf89a54c97acb7848 Mon Sep 17 00:00:00 2001 From: Karl Fischer Date: Sun, 21 Feb 2021 17:59:38 +0100 Subject: [PATCH] Fix no-op --- CHANGELOG.md | 6 ++++++ main.go | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d2d7e9f..96e466d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## master - unreleased + +BUG FIXES: + +* Don't show error on empty line enter in interactive mode ([#85](https://github.com/fishi0x01/vsh/pull/85)) + ## v0.9.0 (February 6, 2021) Big thank you to [mattlqx](https://github.com/mattlqx) for the great enhancements. diff --git a/main.go b/main.go index f19c44dc..a8281574 100644 --- a/main.go +++ b/main.go @@ -48,12 +48,6 @@ func executor(in string) { args, err := argv.Argv(in, func(backquoted string) (string, error) { return backquoted, nil }, nil) - if err != nil { - log.UserError("%v", err) - return - } - commands := cli.NewCommands(vaultClient) - var cmd cli.Command // edge cases if len(args) == 0 { @@ -64,6 +58,13 @@ func executor(in string) { return } + if err != nil { + log.UserError("%v", err) + return + } + commands := cli.NewCommands(vaultClient) + var cmd cli.Command + // parse command switch args[0][0] { case "toggle-auto-completion":