replace eval with (e)

pull/243/head
romkatv 5 years ago
parent 8a11e83fe1
commit 6765b61823

@ -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…
Cancel
Save