typo
This commit is contained in:
parent
a170e34344
commit
164ea811ce
|
@ -103,7 +103,7 @@ function _shrunkpwd()
|
|||
|
||||
# Maybe shorten all elements but the first and last
|
||||
local -a short_dir=(${(s:/:)dir})
|
||||
local -i allowed_element_width=$(( ${max_width} / ${#short_dir} -1 ))
|
||||
local -i allowed_element_width=$(( ${max_width} / ${#short_dir} - 1 ))
|
||||
for index in {2..$(( ${#short_dir} - 1 ))}; do
|
||||
if [[ ${#short_dir[index]} -gt ${allowed_element_width} ]] && \
|
||||
[[ ${#${(j:/:)short_dir}} -gt ${max_width} ]]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user