Wrap before the very edge of the screen

weechat-hashes
C. McEnroe 2020-02-02 02:04:08 -05:00
parent 8ef0af34ef
commit c18dc35377
1 changed files with 1 additions and 1 deletions

2
ui.c
View File

@ -234,7 +234,7 @@ static void styleAdd(WINDOW *win, const char *str) {
if (*str == ' ') {
getyx(win, y, x);
const char *word = &str[strspn(str, " ")];
if (width - x - 1 < wordWidth(word)) {
if (width - x - 1 <= wordWidth(word)) {
waddch(win, '\n');
str = word;
}