mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Add comments
This commit is contained in:
parent
2ae5864147
commit
cf0ea993df
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue