ul: make set_column() zero check more obvious

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2020-10-21 21:17:51 +01:00
parent c7ad82209a
commit 792ff9fcee
No known key found for this signature in database
GPG Key ID: 0D46FEF7E61DBB46
1 changed files with 1 additions and 1 deletions

View File

@ -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);