aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2023-05-16 11:43:49 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2023-05-16 11:43:49 +0300
commita69aa22fa8a4fe0927bb73716c2f7c9d2580a51d (patch)
tree0e423e74826ba074da6ad7e04cd20cc38dadeba5 /internal/p10k.zsh
parent9b47a22f13402ba95262b66ada569f122f5528a0 (diff)
show the right cwd when some part of it gets renamed (#2304)
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index ae9ffacd..a3541bac 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -1904,7 +1904,7 @@ prompt_dir() {
else
local key=
fi
- if ! _p9k_cache_ephemeral_get $0 $e $i $_p9k__cwd || [[ $key != $_p9k__cache_val[1] ]]; then
+ if ! _p9k_cache_ephemeral_get $0 $e $i $_p9k__cwd $p || [[ $key != $_p9k__cache_val[1] ]]; then
local rtail=${(j./.)rparts[i,-1]}
local parent=$_p9k__cwd[1,-2-$#rtail]
_p9k_prompt_length $delim