From c18dc35377d88f331de15ea4c6e1ab41505d30df Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Sun, 2 Feb 2020 02:04:08 -0500 Subject: Wrap before the very edge of the screen --- ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.c b/ui.c index 7b1e339..11ee426 100644 --- a/ui.c +++ b/ui.c @@ -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; } -- cgit 1.4.1-2-gfad0