1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 04:30:27 +01:00

zsh-workers/8720

This commit is contained in:
Tanaka Akira 1999-11-22 12:29:47 +00:00
parent a76b36928c
commit 3d9d13e918
32 changed files with 249 additions and 304 deletions

View file

@ -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

View file

@ -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