From 0b77fd3658f77204dac4f82537d97dda577bf051 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Fri, 13 Jul 2018 11:30:56 +0200 Subject: [PATCH] FIX: use non-colloding function name fixes `read-only variable: LBUFFER` see 535b0b8 of man.zshplugin --- i3swallow.plugin.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i3swallow.plugin.zsh b/i3swallow.plugin.zsh index d297e5d..acab03b 100644 --- a/i3swallow.plugin.zsh +++ b/i3swallow.plugin.zsh @@ -1,4 +1,4 @@ -_i3swallow() { +i3swallow-command-line() { [[ -z $BUFFER ]] && zle up-history if [[ $BUFFER == i3-swallow\ * ]]; then LBUFFER="${LBUFFER#i3-swallow }" @@ -6,7 +6,7 @@ _i3swallow() { LBUFFER="i3-swallow $LBUFFER" fi } -zle -N _i3swallow +zle -N i3swallow-command-line # Defined shortcut keys: [Pos1][Pos1] -bindkey "OHOH" _i3swallow +bindkey "OHOH" i3swallow-command-line