mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
Fix bug when truncating single character directories
This commit is contained in:
parent
8dcdc64296
commit
02adc2f08a
@ -24,8 +24,8 @@ function _tide_item_pwd
|
||||
set splitPwdForOutput[$i] $colorAnchors$splitPwd[$i]$keepBackgroundColor$colorDirs
|
||||
else if test (string join -- '/' $splitPwdForLength | string length) -gt $pwdMaxLength
|
||||
while set -l truncationLength (math $truncationLength + 1) &&
|
||||
test $truncationLength != (string length -- $splitPwdForLength[$i]) &&
|
||||
set -l truncated (string sub --length $truncationLength -- $splitPwd[$i]) &&
|
||||
test $truncated != $splitPwd[$i] &&
|
||||
test (count $parentDir/$truncated*/) -gt 1
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user