mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
Call fish_vi_cursor_handle also for interactive read
Not doing this results in the cursor not being initially set for `read`.
This commit is contained in:
parent
a5dfa84f73
commit
86afc7832d
|
@ -67,7 +67,7 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes'
|
||||||
or set -g fish_cursor_unknown block
|
or set -g fish_cursor_unknown block
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
function fish_vi_cursor_handle --on-variable fish_bind_mode --on-event fish_postexec --on-event fish_focus_in
|
function fish_vi_cursor_handle --on-variable fish_bind_mode --on-event fish_postexec --on-event fish_focus_in --on-event fish_read
|
||||||
set -l varname fish_cursor_\$fish_bind_mode
|
set -l varname fish_cursor_\$fish_bind_mode
|
||||||
if not set -q \$varname
|
if not set -q \$varname
|
||||||
set varname fish_cursor_unknown
|
set varname fish_cursor_unknown
|
||||||
|
|
Loading…
Reference in New Issue
Block a user