Only treat the first tab as the alignment point
parent
aed762368d
commit
5881a96638
2
ui.c
2
ui.c
|
@ -368,7 +368,7 @@ static void wordWrap(WINDOW *win, const char *str) {
|
||||||
int align = 0;
|
int align = 0;
|
||||||
struct Style style = Reset;
|
struct Style style = Reset;
|
||||||
while (*str) {
|
while (*str) {
|
||||||
if (*str == '\t') {
|
if (*str == '\t' && !align) {
|
||||||
waddch(win, ' ');
|
waddch(win, ' ');
|
||||||
getyx(win, y, align);
|
getyx(win, y, align);
|
||||||
str++;
|
str++;
|
||||||
|
|
Loading…
Reference in New Issue