From f76472272e9a40a27a5b589f7ed3cf605c2993c4 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Mon, 1 Apr 2019 14:36:31 -0600 Subject: [PATCH] cleanup: Remove unnecessary braces --- src/bind.zsh | 6 +++--- zsh-autosuggestions.zsh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bind.zsh b/src/bind.zsh index bb41ef8..ec762ef 100644 --- a/src/bind.zsh +++ b/src/bind.zsh @@ -39,20 +39,20 @@ _zsh_autosuggest_bind_widget() { # User-defined widget user:*) _zsh_autosuggest_incr_bind_count $widget - zle -N $prefix${bind_count}-$widget ${widgets[$widget]#*:} + zle -N $prefix$bind_count-$widget ${widgets[$widget]#*:} ;; # Built-in widget builtin) _zsh_autosuggest_incr_bind_count $widget eval "_zsh_autosuggest_orig_${(q)widget}() { zle .${(q)widget} }" - zle -N $prefix${bind_count}-$widget _zsh_autosuggest_orig_$widget + zle -N $prefix$bind_count-$widget _zsh_autosuggest_orig_$widget ;; # Completion widget completion:*) _zsh_autosuggest_incr_bind_count $widget - eval "zle -C $prefix${bind_count}-${(q)widget} ${${(s.:.)widgets[$widget]}[2,3]}" + eval "zle -C $prefix$bind_count-${(q)widget} ${${(s.:.)widgets[$widget]}[2,3]}" ;; esac diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 5bb5cd7..67cb5c9 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -200,20 +200,20 @@ _zsh_autosuggest_bind_widget() { # User-defined widget user:*) _zsh_autosuggest_incr_bind_count $widget - zle -N $prefix${bind_count}-$widget ${widgets[$widget]#*:} + zle -N $prefix$bind_count-$widget ${widgets[$widget]#*:} ;; # Built-in widget builtin) _zsh_autosuggest_incr_bind_count $widget eval "_zsh_autosuggest_orig_${(q)widget}() { zle .${(q)widget} }" - zle -N $prefix${bind_count}-$widget _zsh_autosuggest_orig_$widget + zle -N $prefix$bind_count-$widget _zsh_autosuggest_orig_$widget ;; # Completion widget completion:*) _zsh_autosuggest_incr_bind_count $widget - eval "zle -C $prefix${bind_count}-${(q)widget} ${${(s.:.)widgets[$widget]}[2,3]}" + eval "zle -C $prefix$bind_count-${(q)widget} ${${(s.:.)widgets[$widget]}[2,3]}" ;; esac