From 3d9d13e918c195f974ff7b2f1dc5b65f6b20a441 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 22 Nov 1999 12:29:47 +0000 Subject: zsh-workers/8720 --- Functions/Zle/incremental-complete-word | 4 +--- Functions/Zle/predict-on | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'Functions') diff --git a/Functions/Zle/incremental-complete-word b/Functions/Zle/incremental-complete-word index 0b3cb05f4..61af5d236 100644 --- a/Functions/Zle/incremental-complete-word +++ b/Functions/Zle/incremental-complete-word @@ -18,9 +18,7 @@ incremental-complete-word() { local key lbuf="$LBUFFER" rbuf="$RBUFFER" pmpt word local lastl lastr wid twid num alt post toolong - local curcontext="$curcontext" stop brk - - [[ -z "$curcontext" ]] && curcontext=':incremental' + local curcontext="${curcontext}:incremental" stop brk _style -s '' prompt pmpt || pmpt='incremental (%c): %u%s %l}' _style -s '' stop stop 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 -- cgit 1.4.1