diff --git a/share/functions/delete-or-exit.fish b/share/functions/delete-or-exit.fish index 7bb5c1eff..d82bf2ac1 100644 --- a/share/functions/delete-or-exit.fish +++ b/share/functions/delete-or-exit.fish @@ -6,7 +6,8 @@ # function delete-or-exit - if test (commandline) + set -l cmd (commandline) + if test "$cmd" commandline -f delete-char else exit 0