mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Fix error when using autosuggest widgets
This commit is contained in:
parent
aa5ceee256
commit
acc129de6c
2 changed files with 6 additions and 0 deletions
|
@ -66,6 +66,9 @@ _zsh_autosuggest_bind_widgets() {
|
||||||
|
|
||||||
# Given the name of an original widget and args, invoke it, if it exists
|
# Given the name of an original widget and args, invoke it, if it exists
|
||||||
_zsh_autosuggest_invoke_original_widget() {
|
_zsh_autosuggest_invoke_original_widget() {
|
||||||
|
# Do nothing unless called with at least one arg
|
||||||
|
[ $# -gt 0 ] || return
|
||||||
|
|
||||||
local original_widget_name=$1
|
local original_widget_name=$1
|
||||||
|
|
||||||
shift
|
shift
|
||||||
|
|
|
@ -168,6 +168,9 @@ _zsh_autosuggest_bind_widgets() {
|
||||||
|
|
||||||
# Given the name of an original widget and args, invoke it, if it exists
|
# Given the name of an original widget and args, invoke it, if it exists
|
||||||
_zsh_autosuggest_invoke_original_widget() {
|
_zsh_autosuggest_invoke_original_widget() {
|
||||||
|
# Do nothing unless called with at least one arg
|
||||||
|
[ $# -gt 0 ] || return
|
||||||
|
|
||||||
local original_widget_name=$1
|
local original_widget_name=$1
|
||||||
|
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Reference in a new issue