aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/auto-completion/bash
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-09-01 10:22:44 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-09-01 10:22:44 +0530
commit1e5a0b8c5bc78462956d01c647293a7da594c36f (patch)
treed7b21e3c052d5a921723160264e41a8a40377427 /scripts/auto-completion/bash
parent2e33c577b15dc3ac2d2df793b76a1607be8ae66d (diff)
downloadnnn-1e5a0b8c5bc78462956d01c647293a7da594c36f.tar.gz
Fix #36: uneven splitting of codepoints
Check if the number of columns needed to print name exceeds the number of cols. If it does, split the name str at the max number of columns available for name. Conversion to wide char ensures the split is done at a valid codepoint. The current patch adds some optimization as well: - No more copying to an intermediate (global) string. - If the name is shortened, escape chars are replaced only till the terminator.
Diffstat (limited to 'scripts/auto-completion/bash')
0 files changed, 0 insertions, 0 deletions