mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 01:04:10 +08:00
Fix error when using tmux with vi mode
This commit is contained in:
parent
ea9e05568e
commit
f17ddb6770
@ -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…
x
Reference in New Issue
Block a user