Browse code

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.

John Hawthorn authored on 17/05/2016 02:05:58
Showing 1 changed files

  • fzy.c index 3853b58..084c0ba 100644
... ...
@@ -28,6 +28,7 @@ static void clear(tty_t *tty) {
28 28
 	while (line++ < num_lines) {
29 29
 		tty_newline(tty);
30 30
 	}
31
+	tty_clearline(tty);
31 32
 	tty_moveup(tty, line - 1);
32 33
 	tty_flush(tty);
33 34
 }