summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2015-10-11 11:26:48 +0200
committerMartin Väth <martin@mvath.de>2015-10-11 11:32:18 +0200
commit109d6b4f673a249aea4deeb0cdb5b54a21592410 (patch)
treeec3589a50dac5be54ef6248d1e0ff3a9fd3b41b4 /app-shells/auto-fu-zsh/files
downloadmv-109d6b4f673a249aea4deeb0cdb5b54a21592410.tar.gz
mv-109d6b4f673a249aea4deeb0cdb5b54a21592410.tar.bz2
mv-109d6b4f673a249aea4deeb0cdb5b54a21592410.zip
Clear history for egencache --repo=mv --update-changelogs
Diffstat (limited to 'app-shells/auto-fu-zsh/files')
-rw-r--r--app-shells/auto-fu-zsh/files/exit.patch11
-rw-r--r--app-shells/auto-fu-zsh/files/reset-color.patch11
-rw-r--r--app-shells/auto-fu-zsh/files/zsh-compatibility.patch15
3 files changed, 37 insertions, 0 deletions
diff --git a/app-shells/auto-fu-zsh/files/exit.patch b/app-shells/auto-fu-zsh/files/exit.patch
new file mode 100644
index 00000000..a916f37f
--- /dev/null
+++ b/app-shells/auto-fu-zsh/files/exit.patch
@@ -0,0 +1,11 @@
+--- 1/auto-fu.zsh
++++ 1/auto-fu.zsh
+@@ -287,7 +287,7 @@
+
+ afu-eof-maybe () {
+ local eof="$1"; shift
+- [[ "$BUFFER" != '' ]] || { $eof; return }
++ [[ -z $BUFFER ]] && { $eof; return }
+ "$@"
+ }
+
diff --git a/app-shells/auto-fu-zsh/files/reset-color.patch b/app-shells/auto-fu-zsh/files/reset-color.patch
new file mode 100644
index 00000000..12b5265b
--- /dev/null
+++ b/app-shells/auto-fu-zsh/files/reset-color.patch
@@ -0,0 +1,11 @@
+--- 1/auto-fu.zsh
++++ 1/auto-fu.zsh
+@@ -370,7 +370,7 @@
+ [[ -z ${hi} ]] || region_highlight=("0 ${#BUFFER} ${hi}")
+ }
+ zstyle -T ':auto-fu:var' postdisplay/clearp && POSTDISPLAY=''
+- return 0
++ echo -en '\e[0m'
+ }
+ zle -N $afufun
+ EOT
diff --git a/app-shells/auto-fu-zsh/files/zsh-compatibility.patch b/app-shells/auto-fu-zsh/files/zsh-compatibility.patch
new file mode 100644
index 00000000..1c2d546c
--- /dev/null
+++ b/app-shells/auto-fu-zsh/files/zsh-compatibility.patch
@@ -0,0 +1,15 @@
+--- 1/auto-fu.zsh
++++ 1/auto-fu.zsh
+@@ -305,7 +305,11 @@
+ afu+vi-ins-mode () { zle -K afu ; }; zle -N afu+vi-ins-mode
+ afu+vi-cmd-mode () { zle -K afu-vicmd; }; zle -N afu+vi-cmd-mode
+
+-auto-fu-zle-keymap-select () { afu-track-keymap "$@" afu-adjust-main-keymap }
++# Some zsh versions omit the first argument:
++auto-fu-zle-keymap-select() {
++[[ $# -ge 2 ]] || set -- zle-keymap-select "${@}"
++afu-track-keymap "${@}" afu-adjust-main-keymap
++}
+
+ afu-adjust-main-keymap () { [[ "$KEYMAP" == 'main' ]] && { zle -K "$1" } }
+