mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
ghastly
This commit is contained in:
parent
255b404842
commit
f441a2829a
@ -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…
Reference in New Issue
Block a user