From 1563eb7d56922242de38f4bae4f395ea9a9eccee Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 2 Sep 2020 15:48:47 -0400 Subject: Don't consider the alignment tab a wrapping point --- buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit 1.4.1