FIX: use non-colloding function name
fixes `read-only variable: LBUFFER` see 535b0b8 of man.zshplugin
This commit is contained in:
parent
eb6f937afc
commit
0b77fd3658
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
_i3swallow() {
|
i3swallow-command-line() {
|
||||||
[[ -z $BUFFER ]] && zle up-history
|
[[ -z $BUFFER ]] && zle up-history
|
||||||
if [[ $BUFFER == i3-swallow\ * ]]; then
|
if [[ $BUFFER == i3-swallow\ * ]]; then
|
||||||
LBUFFER="${LBUFFER#i3-swallow }"
|
LBUFFER="${LBUFFER#i3-swallow }"
|
||||||
|
@ -6,7 +6,7 @@ _i3swallow() {
|
||||||
LBUFFER="i3-swallow $LBUFFER"
|
LBUFFER="i3-swallow $LBUFFER"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
zle -N _i3swallow
|
zle -N i3swallow-command-line
|
||||||
|
|
||||||
# Defined shortcut keys: [Pos1][Pos1]
|
# Defined shortcut keys: [Pos1][Pos1]
|
||||||
bindkey "OHOH" _i3swallow
|
bindkey "OHOH" i3swallow-command-line
|
||||||
|
|
Loading…
Reference in a new issue