From 86afc7832daaf7beca6e49c957c72580a7ba390e Mon Sep 17 00:00:00 2001 From: bitraid Date: Tue, 14 Nov 2023 19:31:35 +0200 Subject: [PATCH] Call fish_vi_cursor_handle also for interactive read Not doing this results in the cursor not being initially set for `read`. --- share/functions/fish_vi_cursor.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/fish_vi_cursor.fish b/share/functions/fish_vi_cursor.fish index f58d45f50..2f9558c01 100644 --- a/share/functions/fish_vi_cursor.fish +++ b/share/functions/fish_vi_cursor.fish @@ -67,7 +67,7 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes' or set -g fish_cursor_unknown block 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 if not set -q \$varname set varname fish_cursor_unknown