diff options
author | Arav Singhal <singhal.arav@gmail.com> | 2016-10-27 10:31:02 +0300 |
---|---|---|
committer | Arav Singhal <singhal.arav@gmail.com> | 2016-10-27 10:31:02 +0300 |
commit | 1edb74ba91912ea9acefe091f854eaa8de8ce14e (patch) | |
tree | 677845b352d810d035ae4602be2b825fcf38102c /test/segments | |
parent | c4fdc8f70804fea6f543e6bbf3964301e2537e36 (diff) |
Consider delimiter length in dir truncate right
Truncating the path from the right now takes in account the delimiter
length, so that directories with names shorter than truncated name +
delimiter are displayed properly.
For example, if SHORTEN_DIR_LENGTH is 4 and the delimiter is "..",
"../tests/.." and "../custom/.." are not incorrectly "truncated" to
"../test../.." and "../cust../..", both of which are longer or the same
length as the original.
Diffstat (limited to 'test/segments')
0 files changed, 0 insertions, 0 deletions