diff --git a/share/functions/__fish_cancel_commandline.fish b/share/functions/__fish_cancel_commandline.fish index 3071f0a79..614f2adf4 100644 --- a/share/functions/__fish_cancel_commandline.fish +++ b/share/functions/__fish_cancel_commandline.fish @@ -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"