Fixed the line lengths to fill the console width fully.
authorFrancois Fleuret <francois@fleuret.org>
Wed, 13 Apr 2011 06:55:31 +0000 (08:55 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Wed, 13 Apr 2011 06:55:31 +0000 (08:55 +0200)
selector.c

index ca9d392..3b68b47 100644 (file)
@@ -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++;
           }