mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-24 20:33:04 +00:00
Workaround for OMZ vi-mode plugin
This commit is contained in:
parent
2f6393dd0b
commit
25dae1d616
1 changed files with 6 additions and 1 deletions
|
@ -284,6 +284,10 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
|
|||
zle -N backward-delete-char _hsmw_backward_delete_char
|
||||
zle -N delete-char _hsmw_delete_char
|
||||
|
||||
# OMZ does funny things with zle-keymap-select
|
||||
zle -A zle-keymap-select saved-zle-keymap-select
|
||||
zle -D zle-keymap-select
|
||||
|
||||
# Override ourselves with what we actually are
|
||||
# because zsh-autosuggestions change us
|
||||
zle -A "$down_widget" saved-"$down_widget"
|
||||
|
@ -326,7 +330,8 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
|
|||
zle -A saved-self-insert self-insert
|
||||
zle -A saved-backward-delete-char backward-delete-char
|
||||
zle -A saved-delete-char delete-char
|
||||
zle -D saved-self-insert saved-backward-delete-char saved-delete-char
|
||||
zle -A saved-zle-keymap-select zle-keymap-select
|
||||
zle -D saved-self-insert saved-backward-delete-char saved-delete-char saved-zle-keymap-select
|
||||
|
||||
# Restore ourselves
|
||||
zle -A saved-"$down_widget" "$down_widget"
|
||||
|
|
Loading…
Reference in a new issue