diff options
| author | C. McEnroe | 2020-09-07 17:51:09 -0400 | 
|---|---|---|
| committer | C. McEnroe | 2020-09-07 17:51:09 -0400 | 
| commit | 172d01a668fa5c5ca3410bf9dff37f64a366f620 (patch) | |
| tree | 4db49c36a703124ff5bed3833739c390c8b2a591 | |
| parent | 05f94f1b8b638a5f0b347d972bbbf1c3cad6f3e6 (diff) | |
Let wrapped lines use the last column
| -rw-r--r-- | buffer.c | 6 | 
1 files changed, 3 insertions, 3 deletions
@@ -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;  		}  | 
