Let wrapped lines use the last column

weechat-hashes
C. McEnroe 2020-09-07 17:51:09 -04:00
parent 05f94f1b8b
commit 172d01a668
1 changed files with 3 additions and 3 deletions

View File

@ -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;
} }