Support Apple_Terminal in fish_vi_cursor

This enables it unconditionally, as tests show that the cursor escapes
are ignored before 10.12.

Fixes #8167
This commit is contained in:
ridiculousfish 2021-08-10 12:15:19 -07:00
parent fdf8f17397
commit b0b6a585a8
2 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,8 @@ Scripting improvements
Interactive improvements
------------------------
Vi mode cursors are now set properly after control-C. (:issue:`8125`).
- vi mode cursors are now set properly after control-C. (:issue:`8125`).
- vi mode cursors are enabled in Apple Terminal (:issue:`8167`).
New or improved bindings
^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -46,6 +46,7 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes'
and not set -q VTE_VERSION # which version is already checked above
and not set -q WT_PROFILE_ID
and not set -q XTERM_VERSION
and not string match -q "Apple_Terminal" -- $TERM_PROGRAM
and not string match -rq '^st(-.*)$' -- $TERM
and not string match -q 'xterm-kitty*' -- $TERM
and not string match -q 'rxvt*' -- $TERM