Only treat the first tab as the alignment point
parent
71b0536536
commit
0705f09310
5
ui.c
5
ui.c
|
@ -384,9 +384,14 @@ static void wordWrap(WINDOW *win, const char *str) {
|
|||
struct Style style = Reset;
|
||||
while (*str) {
|
||||
if (*str == '\t') {
|
||||
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, " ")];
|
||||
|
|
Loading…
Reference in New Issue