summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlayman <layman@localhost>2013-01-26 17:59:35 +0100
committerMartin Väth <martin@mvath.de>2015-10-11 10:48:35 +0200
commit3e1950ff2f70e6140f52b244516aab0efb03789c (patch)
tree5d723a4ab7fab0506ad43b3d886a01ba6c48448d /app-shells/auto-fu-zsh/files/kill-line.patch
parentBump zshrc-mv (diff)
downloadmv-3e1950ff2f70e6140f52b244516aab0efb03789c.tar.gz
mv-3e1950ff2f70e6140f52b244516aab0efb03789c.tar.bz2
mv-3e1950ff2f70e6140f52b244516aab0efb03789c.zip
Bump zshrc-mv and auto-fu-zsh. Shift kill-line to zshrc-mv
Diffstat (limited to 'app-shells/auto-fu-zsh/files/kill-line.patch')
-rw-r--r--app-shells/auto-fu-zsh/files/kill-line.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/app-shells/auto-fu-zsh/files/kill-line.patch b/app-shells/auto-fu-zsh/files/kill-line.patch
deleted file mode 100644
index cca7af05..00000000
--- a/app-shells/auto-fu-zsh/files/kill-line.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- auto-fu.zsh
-+++ auto-fu.zsh
-@@ -285,19 +285,21 @@
- }
- }
-
--afu-eof-maybe () {
-- local eof="$1"; shift
-- [[ "$BUFFER" != '' ]] || { $eof; return }
-- "$@"
--}
--
- afu-ignore-eof () { zle -M "zsh: use 'exit' to exit." }
-
--afu-register-zle-eof () {
-- local fun="$1"
-- local then="$2"
-- local else="${3:-delete-char-or-list}"
-- eval "$fun () { afu-eof-maybe $then zle $else }; zle -N $fun"
-+afu-kill-line() {
-+if (($#BUFFER > CURSOR))
-+then zle kill-line
-+else zle kill-whole-line
-+fi
-+}
-+afu-register-zle-eof() {
-+eval $1'() { [[ -z $BUFFER ]] && { '$2'
-+return
-+}
-+afu-kill-line
-+}'
-+zle -N $1
- }
- afu-register-zle-eof afu+orf-ignoreeof-deletechar-list afu-ignore-eof
- afu-register-zle-eof afu+orf-exit-deletechar-list exit