Make delete-or-exit work with multiline commands

darcs-hash:20061206122537-ac50b-80e3b3d6dff886eba162fbb8db5a82ff0f7a107f.gz
This commit is contained in:
axel 2006-12-06 22:25:37 +10:00
parent d9ec65da4d
commit 77b5532ce9

View file

@ -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