zshrc: Use zrcgotwidget in appropriate places
authorFrank Terbeck <ft@grml.org>
Sun, 17 Mar 2013 17:07:10 +0000 (18:07 +0100)
committerFrank Terbeck <ft@grml.org>
Mon, 18 Mar 2013 20:54:31 +0000 (21:54 +0100)
Signed-off-by: Frank Terbeck <ft@grml.org>
etc/zsh/zshrc

index 04443a8..ac83984 100644 (file)
@@ -1313,7 +1313,7 @@ zstyle ':completion:hist-complete:*' completer _history
 typeset -ga grml_missing_features
 
 function zrcbindkey() {
-    if (( ARGC && ${+widgets[${argv[-1]}]} )); then
+    if (( ARGC )) && zrcgotwidget ${argv[-1]}; then
         bindkey "$@"
     fi
 }