zshrc, keys: fix `zrcgotwidget()' function
[grml-etc-core.git] / etc / zsh / zshrc
index b6fb7a8..04443a8 100644 (file)
@@ -596,7 +596,7 @@ typeset -U path cdpath fpath manpath
 
 # Load a few modules
 is4 && \
-for mod in complist deltochar mathfunc ; do
+for mod in parameter complist deltochar mathfunc ; do
     zmodload -i zsh/${mod} 2>/dev/null || print "Notice: no ${mod} available :("
 done
 
@@ -1290,7 +1290,7 @@ function zrcautozle() {
 }
 
 function zrcgotwidget() {
-    (( ${+widgets[$i]} ))
+    (( ${+widgets[$1]} ))
 }
 
 function zrcgotkeymap() {