mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
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:
parent
363fa0a598
commit
f0e884075c
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue