summaryrefslogtreecommitdiffstats
path: root/Functions
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-24 12:35:07 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-24 12:35:07 +0000
commita2876b6db3e25ab7c5f7df10806d6f0b45b89514 (patch)
tree9b88c88737985c50b206eae2c239ffb7517862a7 /Functions
parentzsh-workers/10226 (diff)
downloadzsh-a2876b6db3e25ab7c5f7df10806d6f0b45b89514.tar
zsh-a2876b6db3e25ab7c5f7df10806d6f0b45b89514.tar.gz
zsh-a2876b6db3e25ab7c5f7df10806d6f0b45b89514.tar.bz2
zsh-a2876b6db3e25ab7c5f7df10806d6f0b45b89514.tar.lz
zsh-a2876b6db3e25ab7c5f7df10806d6f0b45b89514.tar.xz
zsh-a2876b6db3e25ab7c5f7df10806d6f0b45b89514.tar.zst
zsh-a2876b6db3e25ab7c5f7df10806d6f0b45b89514.zip
zsh-workers/10230
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Zle/incremental-complete-word16
1 files changed, 3 insertions, 13 deletions
diff --git a/Functions/Zle/incremental-complete-word b/Functions/Zle/incremental-complete-word
index c01bc4f6b..f69af52d5 100644
--- a/Functions/Zle/incremental-complete-word
+++ b/Functions/Zle/incremental-complete-word
@@ -17,7 +17,7 @@ incremental-complete-word() {
unsetopt autolist menucomplete automenu # doesn't work well
local key lbuf="$LBUFFER" rbuf="$RBUFFER" pmpt pstr word
- local lastl lastr wid twid num alt post toolong
+ local lastl lastr wid twid num post toolong
local curcontext="${curcontext}" stop brk
[[ -z "$curcontext" ]] && curcontext=:::
@@ -42,10 +42,6 @@ incremental-complete-word() {
RBUFFER="$rbuf"
num=$_lastcomp[nmatches]
if (( ! num )); then
- num="${_lastcomp[alternate_nmatches]}"
- alt=' -alt-'
- fi
- if (( ! num )); then
word=''
state='-no match-'
elif [[ "${LBUFFER}${RBUFFER}" = *${_lastcomp[unambiguous]}* ]]; then
@@ -55,7 +51,7 @@ incremental-complete-word() {
word="${_lastcomp[unambiguous]}"
state=''
fi
- zformat -f pstr "$pmpt" "u:${word}" "s:$state" "n:$num" "a:$alt" \
+ zformat -f pstr "$pmpt" "u:${word}" "s:$state" "n:$num" \
"l:$toolong" "c:${_lastcomp[completer][2,-1]}"
zle -R "$pstr"
read -k key
@@ -88,12 +84,6 @@ incremental-complete-word() {
RBUFFER="$lastr"
num=$_lastcomp[nmatches]
if (( ! num )); then
- num="${_lastcomp[alternate_nmatches]}"
- alt=' -alt-'
- else
- alt=''
- fi
- if (( ! num )); then
word=''
state='-no match-'
elif [[ "${LBUFFER}${RBUFFER}" = *${_lastcomp[unambiguous]}* ]]; then
@@ -103,7 +93,7 @@ incremental-complete-word() {
word="${_lastcomp[unambiguous]}"
state=''
fi
- zformat -f pstr "$pmpt" "u:${word}" "s:$state" "n:$num" "a:$alt" \
+ zformat -f pstr "$pmpt" "u:${word}" "s:$state" "n:$num" \
"l:$toolong" "c:${_lastcomp[completer][2,-1]}"
zle -R "$pstr"
read -k key