term.c: fix line pushdown in append mode