summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2016-05-16 19:05:58 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2016-05-16 19:07:57 -0700
commit60e3b9119c42c4a926d146f20bc64a193935b8f4 (patch)
treebecdb461d942b38f57004e7ed98ab156a9f88d43
parenta7eacadd747767562a0ab9df25a8243a85396ee7 (diff)
Ensure last line is cleared on exit.
Previously we were failing to clear the very last line when exiting. Thanks to Zaplanincan for reporting the issue.
-rw-r--r--fzy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fzy.c b/fzy.c
index 3853b58..084c0ba 100644
--- a/fzy.c
+++ b/fzy.c
@@ -28,6 +28,7 @@ static void clear(tty_t *tty) {
while (line++ < num_lines) {
tty_newline(tty);
}
+ tty_clearline(tty);
tty_moveup(tty, line - 1);
tty_flush(tty);
}