pull/816/head
nick black 4 years ago
parent 255b404842
commit f441a2829a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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;
} }
} }

Loading…
Cancel
Save