summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/auto-fu-zsh/files/kill-line-live.patch')
-rw-r--r--app-shells/auto-fu-zsh/files/kill-line-live.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/app-shells/auto-fu-zsh/files/kill-line-live.patch b/app-shells/auto-fu-zsh/files/kill-line-live.patch
deleted file mode 100644
index c341e898..00000000
--- a/app-shells/auto-fu-zsh/files/kill-line-live.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- auto-fu.zsh
-+++ auto-fu.zsh
-@@ -386,19 +386,21 @@
- }
- }
-
--afu-eof-maybe () {
-- local eof="$1"; shift
-- [[ -z $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