Let wrapped lines use the last column
parent
05f94f1b8b
commit
172d01a668
4
buffer.c
4
buffer.c
|
@ -138,10 +138,10 @@ static int flow(struct Lines *hard, int cols, const struct Line *soft) {
|
||||||
width += wcwidth(wc);
|
width += wcwidth(wc);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (width <= cols) {
|
|
||||||
if (tab && width < cols) align = width;
|
if (tab && width < cols) align = width;
|
||||||
if (iswspace(wc) && !tab) wrap = str;
|
if (iswspace(wc) && !tab) wrap = str;
|
||||||
if (*str == '-') wrap = &str[1];
|
if (width <= cols) {
|
||||||
|
if (wc == L'-') wrap = &str[n];
|
||||||
str += n;
|
str += n;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue