mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
replace eval with (e)
This commit is contained in:
parent
8a11e83fe1
commit
6765b61823
1 changed files with 1 additions and 1 deletions
|
@ -1513,7 +1513,7 @@ prompt_dir() {
|
|||
content=$pref$content$suf
|
||||
fi
|
||||
|
||||
(( expand )) && eval "_p9k_prompt_length \"\${\${_p9k_d::=0}+}$content\"" || _p9k_ret=
|
||||
(( expand )) && _p9k_prompt_length "${(e):-"\${\${_p9k_d::=0}+}$content"}" || _p9k_ret=
|
||||
_p9k_cache_set "$state" "$icon" "$expand" "$content" $_p9k_ret
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue