mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
Fix error when using tmux with vi mode
This commit is contained in:
parent
ea9e05568e
commit
f17ddb6770
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,10 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes'
|
|||
and begin set -q KONSOLE_PROFILE_NAME
|
||||
or set -q ITERM_PROFILE
|
||||
or set -q VTE_VERSION # which version is already checked above
|
||||
or test (string replace -r "XTerm\((\d+)\)" '$1' -- $XTERM_VERSION) -ge 280
|
||||
or begin
|
||||
set -q XTERM_VERSION
|
||||
and test (string replace -r "XTerm\((\d+)\)" '$1' -- $XTERM_VERSION) -ge 280
|
||||
end
|
||||
end
|
||||
# .. unless an unsupporting terminal has been started in tmux inside a supporting one
|
||||
and begin string match -q "screen*" -- $TERM
|
||||
|
|
Loading…
Reference in a new issue