summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-09-02 15:48:47 -0400
committerJune McEnroe <june@causal.agency>2020-09-02 15:48:47 -0400
commit1563eb7d56922242de38f4bae4f395ea9a9eccee (patch)
tree801648db1598391999a17f5a079ad122f8755cca
parentCall wclear on resize (diff)
downloadcatgirl-1563eb7d56922242de38f4bae4f395ea9a9eccee.tar.gz
catgirl-1563eb7d56922242de38f4bae4f395ea9a9eccee.zip
Don't consider the alignment tab a wrapping point
Diffstat (limited to '')
-rw-r--r--buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buffer.c b/buffer.c
index 9fee0b0..bc4a2b8 100644
--- a/buffer.c
+++ b/buffer.c
@@ -136,7 +136,7 @@ static int flow(struct Lines *hard, int cols, const struct Line *soft) {
 
 		if (width <= cols) {
 			if (tab && width < cols) align = width;
-			if (iswspace(wc)) wrap = str;
+			if (iswspace(wc) && !tab) wrap = str;
 			if (*str == '-') wrap = &str[1];
 			str += n;
 			continue;