mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01: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
|
content=$pref$content$suf
|
||||||
fi
|
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
|
_p9k_cache_set "$state" "$icon" "$expand" "$content" $_p9k_ret
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue