summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--term.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/term.c b/term.c
index 957193e8..eb8eee83 100644
--- a/term.c
+++ b/term.c
@@ -275,6 +275,12 @@ term_flushln(struct termp *p)
vis = vend;
}
+ /*
+ * If there was trailing white space, it was not printed;
+ * so reset the cursor position accordingly.
+ */
+ vis -= vbl;
+
p->col = 0;
p->overstep = 0;