From: Francois Fleuret Date: Wed, 13 Apr 2011 06:55:31 +0000 (+0200) Subject: Fixed the line lengths to fill the console width fully. X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=selector.git;a=commitdiff_plain;h=8d9de92b641cae8302bbfe9681c487bfea9401f8 Fixed the line lengths to fill the console width fully. --- diff --git a/selector.c b/selector.c index ca9d392..3b68b47 100644 --- a/selector.c +++ b/selector.c @@ -603,7 +603,7 @@ void update_screen(int *current_focus_line, int *displayed_focus_line, if(match(&matcher, lines[l])) { int k = 0; - while(lines[l][k] && k < BUFFER_SIZE - 2 && k < console_width - 2) { + while(lines[l][k] && k < BUFFER_SIZE - 2 && k < console_width) { buffer[k] = lines[l][k]; k++; }