summaryrefslogtreecommitdiffstats
path: root/Functions/Zle/predict-on
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-22 12:29:47 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-22 12:29:47 +0000
commit3d9d13e918c195f974ff7b2f1dc5b65f6b20a441 (patch)
treed571aef9c8152287ed94dae1199108de80f0b984 /Functions/Zle/predict-on
parentzsh-workers/8718 (diff)
downloadzsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar.gz
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar.bz2
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar.lz
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar.xz
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar.zst
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.zip
zsh-workers/8720
Diffstat (limited to 'Functions/Zle/predict-on')
-rw-r--r--Functions/Zle/predict-on4
1 files changed, 1 insertions, 3 deletions
diff --git a/Functions/Zle/predict-on b/Functions/Zle/predict-on
index 07e2856de..4f0b15507 100644
--- a/Functions/Zle/predict-on
+++ b/Functions/Zle/predict-on
@@ -53,9 +53,7 @@ insert-and-predict () {
unsetopt automenu recexact
integer curs=$CURSOR pos nchar=${#LBUFFER//[^${KEYS[-1]}]}
local -a +h comppostfuncs
- local crs curcontext="$curcontext"
-
- [[ -z "$curcontext" ] && curcontext=':predict'
+ local crs curcontext="${curcontext}:predict"
comppostfuncs=( predict-limit-list )
zle complete-word