From 00522c85207a8b18f7ae5976b3ce78f53f5fb484 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Sun, 17 Mar 2013 18:07:10 +0100 Subject: [PATCH] zshrc: Use zrcgotwidget in appropriate places Signed-off-by: Frank Terbeck --- etc/zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 04443a8..ac83984 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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 } -- 2.1.4