Bläddra i källkod

Call original accept-line widget when executing suggestion

pull/125/head
Eric Freese 8 år sedan
förälder
incheckning
8c3fdea75d
2 ändrade filer med 6 tillägg och 2 borttagningar
  1. +3
    -1
      src/widgets.zsh
  2. +3
    -1
      zsh-autosuggestions.zsh

+ 3
- 1
src/widgets.zsh Visa fil

@ -55,7 +55,9 @@ _zsh_autosuggest_execute() {
# Remove the suggestion # Remove the suggestion
unset POSTDISPLAY unset POSTDISPLAY
zle .accept-line
# Call the original `accept-line` to handle syntax highlighting or
# other potential custom behavior
_zsh_autosuggest_invoke_original_widget "accept-line"
} }
# Partially accept the suggestion # Partially accept the suggestion

+ 3
- 1
zsh-autosuggestions.zsh Visa fil

@ -266,7 +266,9 @@ _zsh_autosuggest_execute() {
# Remove the suggestion # Remove the suggestion
unset POSTDISPLAY unset POSTDISPLAY
zle .accept-line
# Call the original `accept-line` to handle syntax highlighting or
# other potential custom behavior
_zsh_autosuggest_invoke_original_widget "accept-line"
} }
# Partially accept the suggestion # Partially accept the suggestion

Laddar…
Avbryt
Spara