aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-04 10:44:21 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-04 10:44:21 +0300
commit6765b618239d3c6815339468393d3354f48b1589 (patch)
tree586393f31e9cadb7bf00f031fa158a03b7ca1a2b
parent8a11e83fe1a60ccbd17586ce08770908df6495d5 (diff)
replace eval with (e)
-rwxr-xr-xinternal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 12e9e89c..4ce09210 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -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