This commit is contained in:
nick black 2020-07-22 02:17:35 -04:00
parent 255b404842
commit f441a2829a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -1612,11 +1612,11 @@ overlong_word(const char* text, int dimx){
return false; return false;
} }
text += consumed; text += consumed;
size_t w = wcwidth(w); size_t wide = wcwidth(w);
if(w > 0){ if(wide > 0){
width += w; width += wide;
} }
if(w > dimx){ if(width > (size_t)dimx){
return true; return true;
} }
} }