mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 08:41:13 +08:00
Fix external cursor not being restored on exiting Vi mode
This commit is contained in:
parent
0e97b876ea
commit
832cda26f6
|
@ -18,7 +18,7 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes'
|
||||||
__fish_vi_cursor fish_cursor_$fish_bind_mode
|
__fish_vi_cursor fish_cursor_$fish_bind_mode
|
||||||
end
|
end
|
||||||
|
|
||||||
function fish_vi_cursor_handle_preexec --on-event fish_preexec
|
function fish_vi_cursor_handle_preexec --on-event fish_preexec --on-event fish_exit
|
||||||
set -l varname fish_cursor_external
|
set -l varname fish_cursor_external
|
||||||
if not set -q \$varname
|
if not set -q \$varname
|
||||||
set varname fish_cursor_default
|
set varname fish_cursor_default
|
||||||
|
|
Loading…
Reference in New Issue
Block a user