Mute output from command -v tput (#3355)

The previous change here caused an obviously unwanted path to the `tput` command to be left on the prompt after ^C.
This commit is contained in:
George Christou 2016-09-06 10:37:52 +01:00 committed by Aaron Gyes
parent 363fa0a598
commit f0e884075c

View File

@ -9,7 +9,7 @@ function __fish_cancel_commandline
#
# Set reverse fg/bg color mode, output ^C, restore normal mode, clear to EOL (to erase any
# autosuggestion).
if command -v tput
if command -v tput >/dev/null
echo -ns (tput smso; or tput so) "^C" (tput rmso; or tput se) (tput el; or tput ce)
else
echo -n "^C"