@@ -2390,12 +2390,15 @@ $match[7]}:-${ZINIT[__last-formatter-code]}}}:+}}}//←→}
2390
2390
# (delay), i.e. "burst" allows to run package installations from
2391
2391
# script, not from prompt.
2392
2392
@zinit-scheduler () {
2393
- integer ___ret=" ${${ZINIT[lro-data]%:* } ##*: } "
2393
+ integer ___ret=" ${${ZINIT[lro-data]%:* } ##*: } " ___secs= $(( ${ # ${ZINIT_TASKS :# <no-data>} } > 1 ? 1 : 10 ))
2394
2394
# lro stands for lastarg-retval-option.
2395
- [[ $1 = following ]] && sched +1 ' ZINIT[lro-data]="$_:$?:${options[printexitvalue]}"; @zinit-scheduler following "${ZINIT[lro-data]%:*:*}"'
2396
- [[ -n $1 && $1 != (following* | burst) ]] && { local THEFD=" $1 " ; zle -F " $THEFD " ; exec {THEFD}< & -; }
2395
+ [[ $1 = following ]] && sched +$___secs ' ZINIT[lro-data]="$_:$?:${options[printexitvalue]}"; @zinit-scheduler following "${ZINIT[lro-data]%:*:*}"'
2396
+ [[ -n $1 && $1 != (following* | burst) ]] && \
2397
+ { local THEFD=" $1 " ; zle -F " $THEFD " ; exec {THEFD}< & -; }
2397
2398
[[ $1 = burst ]] && local -h EPOCHSECONDS=$(( EPOCHSECONDS+ 10000 ))
2398
2399
ZINIT[START_TIME]=" ${ZINIT[START_TIME]:- $EPOCHREALTIME } "
2400
+ # Return early if no actual tasks.
2401
+ [[ -z ${ZINIT_TASKS:# <no-data>} ]] && return 0
2399
2402
2400
2403
integer ___t=EPOCHSECONDS ___i correct
2401
2404
local -a match mbegin mend reply
@@ -3276,6 +3279,8 @@ typeset -g REPLY
3276
3279
3277
3280
# a searchable menu of tags for current directory
3278
3281
zinit null light-mode autoload' zi-browse-symbol' for %$ZINIT [BIN_DIR]
3282
+ ZINIT_REGISTERED_PLUGINS[-1]=()
3283
+
3279
3284
zle -N zi-browse-symbol
3280
3285
zle -N zi-browse-symbol-backwards zi-browse-symbol
3281
3286
zle -N zi-browse-symbol-pbackwards zi-browse-symbol
0 commit comments