mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
fish_vi_key_bindings: hack to prevent error when overriding fish_vi_cursor
As discovered in https://matrix.to/#/!YLTeaulxSDauOOxBoR:matrix.org/$BFAjMPXBA9UczLT8h-7XpiyGUDv0Cz5g6ijbgdEVl_w
This commit is contained in:
@@ -427,9 +427,11 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
|
||||
end
|
||||
end
|
||||
function __fish_vi_key_bindings_remove_handlers --on-variable __fish_active_key_bindings
|
||||
__fish_vi_cursor fish_cursor_default
|
||||
functions --erase __fish_vi_key_bindings_remove_handlers
|
||||
functions --erase __fish_vi_key_bindings_on_mode_change
|
||||
if type -q __fish_vi_cursor
|
||||
__fish_vi_cursor fish_cursor_default
|
||||
end
|
||||
functions --erase fish_vi_cursor_handle
|
||||
functions --erase fish_vi_cursor_handle_preexec
|
||||
set -e -g fish_cursor_end_mode
|
||||
|
||||
Reference in New Issue
Block a user