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:
parent
a76b36928c
commit
3d9d13e918
32 changed files with 249 additions and 304 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue