diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-13 23:41:49 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-13 23:41:49 +0530 |
commit | cf0ea993df963e05a2a54dda7cc1d9b32266f632 (patch) | |
tree | ad322654b88ec7b699d51f7fd35c356d90e0af39 /src/nnn.c | |
parent | 2ae58641473d5bf4ecf0720b5272bf43ad0451ef (diff) | |
download | nnn-cf0ea993df963e05a2a54dda7cc1d9b32266f632.tar.gz |
Add comments
Diffstat (limited to 'src/nnn.c')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1884,9 +1884,11 @@ static char *unescape(const char *str, uint maxcols) if (maxcols) { len = lencount = wcswidth(wbuf, len); + /* Reduce nuber of wide chars to max columns */ if (len > maxcols) lencount = maxcols + 1; + /* Reduce wide chars one by one till it fits */ while (len > maxcols) len = wcswidth(wbuf, --lencount); |