ul: make set_column() zero check more obvious
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
c7ad82209a
commit
792ff9fcee
|
@ -482,7 +482,7 @@ static void filter(struct ul_ctl *ctl, struct term_caps const *const tcs, FILE *
|
|||
while ((c = getwc(f)) != WEOF) {
|
||||
switch (c) {
|
||||
case '\b':
|
||||
set_column(ctl, ctl->column && 0 < (ctl->column - 1) ? ctl->column - 1 : 0);
|
||||
set_column(ctl, ctl->column && 0 < ctl->column ? ctl->column - 1 : 0);
|
||||
continue;
|
||||
case '\t':
|
||||
set_column(ctl, (ctl->column + 8) & ~07);
|
||||
|
|
Loading…
Reference in New Issue