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