about summary refs log tree commit diff
path: root/ui.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-02 02:04:08 -0500
committerJune McEnroe <june@causal.agency>2020-02-02 02:04:08 -0500
commitc18dc35377d88f331de15ea4c6e1ab41505d30df (patch)
tree9c9898e348136d89bae7bcdda31bf65f3b5a17e9 /ui.c
parentParse time tag (diff)
downloadcatgirl-c18dc35377d88f331de15ea4c6e1ab41505d30df.tar.gz
catgirl-c18dc35377d88f331de15ea4c6e1ab41505d30df.zip
Wrap before the very edge of the screen
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
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;
 			}