summary refs log tree commit diff
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
parentParse time tag (diff)
downloadcatgirl-c18dc35377d88f331de15ea4c6e1ab41505d30df.tar.gz
catgirl-c18dc35377d88f331de15ea4c6e1ab41505d30df.zip
Wrap before the very edge of the screen
-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;
 			}
fb58dcab70d777c45c403d&follow=1'>Use class names for Foreground, Background, BorderColorJune McEnroe 2021-02-07Add simple battery status and clock to xsessionJune McEnroe 2021-02-07Set cursor theme and sizeJune McEnroe 2021-02-07Use scrot for up -s if no screencaptureJune McEnroe 2021-02-07Enable mouse acceleration in XJune McEnroe 2021-02-07Set colours for Xt and cwmJune McEnroe 2021-02-07Set urgency on bell in xtermJune McEnroe 2021-02-07Add bindings for brightness controlJune McEnroe 2021-02-07Set X key repeat rateJune McEnroe 2021-02-07Bump font size to 12June McEnroe 2021-02-07Fully configure and rebind cwmJune McEnroe 2021-02-07Add BintiJune McEnroe 2021-02-07Finish configuring xtermJune McEnroe 2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe 2021-02-06Add xterm output to schemeJune McEnroesrc/commit/www/causal.agency/torus.pty?id=4f181c9031cf11d0d2d78abe4937242e30c5359f&follow=1'>Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe