From f17ddb6770626892217d2a3a7cf494e5bcbbd720 Mon Sep 17 00:00:00 2001 From: Dan Zimmerman Date: Tue, 28 Feb 2017 11:51:48 -0600 Subject: [PATCH] Fix error when using tmux with vi mode --- share/functions/fish_vi_cursor.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/functions/fish_vi_cursor.fish b/share/functions/fish_vi_cursor.fish index 0da5e2a0c..356cebf03 100644 --- a/share/functions/fish_vi_cursor.fish +++ b/share/functions/fish_vi_cursor.fish @@ -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