diff options
| author | C. McEnroe | 2020-02-07 23:56:41 -0500 | 
|---|---|---|
| committer | C. McEnroe | 2020-02-07 23:56:41 -0500 | 
| commit | 0705f0931094706a3b758f33f487cf25a6f03cab (patch) | |
| tree | 655f516bc1faebc5c57180c9252ca7116ca88765 | |
| parent | 71b05365368b400593c974a4e69a9369c4496036 (diff) | |
Only treat the first tab as the alignment point
| -rw-r--r-- | ui.c | 11 | 
1 files changed, 8 insertions, 3 deletions
| @@ -384,9 +384,14 @@ static void wordWrap(WINDOW *win, const char *str) {  	struct Style style = Reset;  	while (*str) {  		if (*str == '\t') { -			waddch(win, ' '); -			getyx(win, y, align); -			str++; +			if (align) { +				waddch(win, '\t'); +				str++; +			} else { +				waddch(win, ' '); +				getyx(win, y, align); +				str++; +			}  		} else if (*str == ' ') {  			getyx(win, y, x);  			const char *word = &str[strspn(str, " ")]; | 
