mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 22:14:53 +00:00
fish_vi_cursor: Ignore errors from tput
Fixes #3519.
(cherry picked from commit b9b66791c1
)
This commit is contained in:
parent
e4ce5ca24f
commit
c9c311fbdb
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes'
|
||||||
# We use the `tput` here just to see if terminfo thinks we can change the cursor.
|
# We use the `tput` here just to see if terminfo thinks we can change the cursor.
|
||||||
# We cannot use that sequence directly as it's not the correct one for konsole and iTerm,
|
# We cannot use that sequence directly as it's not the correct one for konsole and iTerm,
|
||||||
# and because we may want to change the cursor even though terminfo says we can't (tmux).
|
# and because we may want to change the cursor even though terminfo says we can't (tmux).
|
||||||
if not tput Ss > /dev/null
|
if not tput Ss > /dev/null ^/dev/null
|
||||||
# Whitelist tmux...
|
# Whitelist tmux...
|
||||||
and not begin
|
and not begin
|
||||||
set -q TMUX
|
set -q TMUX
|
||||||
|
|
Loading…
Reference in a new issue