Commit 47a1c83a authored by Frank Terbeck's avatar Frank Terbeck

Some scope fixes

parent fb35f094
......@@ -64,7 +64,7 @@ path=( ${HOME}/bin
for i in /opt/opera/bin /usr/games ; do
[[ -d $i ]] && path=( "${path[@]}" $i )
done
done; unset i
typeset -U path
......@@ -451,6 +451,7 @@ function zrcmodload() {
# zrclistkeys() show a list of keysyms strings
function zrclistkeys() {
local i
for i in ${(kon)key}; do
printf '%13s: '\''%s'\''\n' $i ${(V)${key[$i]}}
done
......@@ -1110,9 +1111,11 @@ else
for k in ${(k)key} ; do
key[Alt-$k]='^['${key[$k]}
done
unset k
function kbd_expand() {
emulate -L zsh
local k i
setopt braceccl
for k in {0..9} {a-z} {A-Z} . , \# + ; do
......@@ -1860,6 +1863,7 @@ zstyle ':acceptline:*' nocompwarn true
function turn_dots_into_cd () {
local buf="$1"
local -i i
buf='cd '
for (( i = 1; i <= ${#${cmdline[1]}}; i++ )); do
buf="${buf}../"
......@@ -2761,7 +2765,7 @@ bind2maps viins emacs -- "Backspace" backward-delete-char
bind2maps viins emacs -- -s "^?" backward-delete-char
for (( i = 0; i < 10; ++i )); do
bind2maps vicmd viins emacs -- "Alt-$i" digit-argument
done
done; unset i
bind2maps viins emacs -- "Alt-D" zap-to-char
bind2maps viins emacs -- "Alt-F" delete-to-char
bind2maps viins emacs -- "Alt-b" backward-word-match
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment