mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
when shortening with truncate_to_unique, never produce just dots for a segment
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user