summaryrefslogtreecommitdiff
path: root/dot-oh-my-zsh/custom/plugins/zsh-autocomplete/functions/widget/.autocomplete.complete-word.completion-widget
diff options
context:
space:
mode:
Diffstat (limited to 'dot-oh-my-zsh/custom/plugins/zsh-autocomplete/functions/widget/.autocomplete.complete-word.completion-widget')
m---------dot-oh-my-zsh0
-rw-r--r--dot-oh-my-zsh/custom/plugins/zsh-autocomplete/functions/widget/.autocomplete.complete-word.completion-widget27
2 files changed, 0 insertions, 27 deletions
diff --git a/dot-oh-my-zsh b/dot-oh-my-zsh
new file mode 160000
+Subproject 6fe84bf5c82da7b1f6d7c5ec3e5c447721ac8ce
diff --git a/dot-oh-my-zsh/custom/plugins/zsh-autocomplete/functions/widget/.autocomplete.complete-word.completion-widget b/dot-oh-my-zsh/custom/plugins/zsh-autocomplete/functions/widget/.autocomplete.complete-word.completion-widget
deleted file mode 100644
index 9d14478b..00000000
--- a/dot-oh-my-zsh/custom/plugins/zsh-autocomplete/functions/widget/.autocomplete.complete-word.completion-widget
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/zsh
-zmodload -F zsh/terminfo p:terminfo
-
-local -P key_name=
-case $KEYS in
- ( $'\t' ) key_name=tab ;;
- ( $terminfo[kcbt] ) key_name=shift-tab ;;
-esac
-
-() {
- local -a match=() mbegin=() mend=() # `zstyle` for some reason assigns these.
- local +h curcontext=${curcontext:-${WIDGET}:::}
- local +h -a comppostfuncs=( .autocomplete.complete-word.post "$comppostfuncs[@]" )
-
- if [[ -z $compstate[old_list] ]] || [[ $WIDGET == *menu-* && -v _autocomplete__partial_list ]] ||
- ( builtin zstyle -t ":autocomplete:${key_name}:" insert-unambiguous &&
- [[ -n $_autocomplete__unambiguous ]] ); then
- _main_complete
- else
- compstate[old_list]=keep
- [[ $key_name == shift-tab && $_lastcomp[tags] == *all-matches ]] &&
- compstate[insert]=all
- _main_complete -
- fi
-}
-[[ _lastcomp[nmatches] -gt 0 && -n $compstate[insert] ]] &&
- unset curcontext