FIX: use non-colloding function name

fixes `read-only variable: LBUFFER`

see 535b0b8 of man.zshplugin
This commit is contained in:
Sebastian Mark 2018-07-13 11:30:56 +02:00
parent eb6f937afc
commit 0b77fd3658

View file

@ -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