diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-12 21:12:34 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-12 21:20:30 +0530 |
commit | 2ae58641473d5bf4ecf0720b5272bf43ad0451ef (patch) | |
tree | 3943f4d20d3cf2f529935c320cdfa36eec546551 /src | |
parent | d8d4be6aa610036dec8dfedcfb5a1d8fa4682043 (diff) | |
download | nnn-2ae58641473d5bf4ecf0720b5272bf43ad0451ef.tar.gz |
Fix file name generation
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1884,6 +1884,9 @@ static char *unescape(const char *str, uint maxcols) if (maxcols) { len = lencount = wcswidth(wbuf, len); + if (len > maxcols) + lencount = maxcols + 1; + while (len > maxcols) len = wcswidth(wbuf, --lencount); |