Don't consider the alignment tab a wrapping point
parent
17898622e3
commit
1563eb7d56
2
buffer.c
2
buffer.c
|
@ -136,7 +136,7 @@ static int flow(struct Lines *hard, int cols, const struct Line *soft) {
|
||||||
|
|
||||||
if (width <= cols) {
|
if (width <= cols) {
|
||||||
if (tab && width < cols) align = width;
|
if (tab && width < cols) align = width;
|
||||||
if (iswspace(wc)) wrap = str;
|
if (iswspace(wc) && !tab) wrap = str;
|
||||||
if (*str == '-') wrap = &str[1];
|
if (*str == '-') wrap = &str[1];
|
||||||
str += n;
|
str += n;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue