mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Call original accept-line widget when executing suggestion
This commit is contained in:
parent
aa597eea6d
commit
8c3fdea75d
2 changed files with 6 additions and 2 deletions
|
@ -55,7 +55,9 @@ _zsh_autosuggest_execute() {
|
|||
# Remove the suggestion
|
||||
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
|
||||
|
|
|
@ -266,7 +266,9 @@ _zsh_autosuggest_execute() {
|
|||
# Remove the suggestion
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue