mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Make delete-or-exit work with multiline commands
darcs-hash:20061206122537-ac50b-80e3b3d6dff886eba162fbb8db5a82ff0f7a107f.gz
This commit is contained in:
parent
d9ec65da4d
commit
77b5532ce9
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue