diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-05-09 20:51:57 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-05-09 20:53:01 +0300 |
commit | 22396b86f34f8d526479ac6d8b30e0ab2b8be9aa (patch) | |
tree | 7e7365a694f5eae528fbaa8e4f2705e7fabf55a0 /internal/p10k.zsh | |
parent | 3de6154ee7a4bd1a37597ced33f67521981905e9 (diff) |
when shortening with truncate_to_unique, never produce just dots for a segment
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index ee36ace3..3892109a 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -1800,7 +1800,7 @@ prompt_dir() { (( q )) && parts[i]="\${(Q)\${:-${(qqq)${(q)sub}}}}" parts[i]+=$'\2' else - local -i j=1 + local -i j=$sub[(i)[^.]] for (( ; j + d < $#sub; ++j )); do local -a matching=($parent/$sub[1,j]*/(N)) (( $#matching == 1 )) && break |