From 6e072d1a61ff10f8b689c7d60f41753b14bb9fce Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 12 Jul 2012 23:59:02 +0200 Subject: [PATCH] ncurses: fix first ~ line drawing --- src/ncurses.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ncurses.cc b/src/ncurses.cc index cf3b5104..ad406d95 100644 --- a/src/ncurses.cc +++ b/src/ncurses.cc @@ -127,7 +127,7 @@ void NCursesClient::draw_window(Window& window) set_attribute(A_BLINK, 0); set_attribute(A_BOLD, 0); set_color(Color::Blue, Color::Black); - while (++line_index < max_y) + for (;line_index < max_y; ++line_index) { move(line_index, 0); clrtoeol();