From 193d8265f2564e72db271c3bcbd65ed8d8d8fc9a Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Tue, 9 Jun 2009 16:58:37 +0200 Subject: [PATCH] Cosmetics. --- selector.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/selector.cc b/selector.cc index 918b724..8e03818 100644 --- a/selector.cc +++ b/selector.cc @@ -30,6 +30,7 @@ #include #include +#include #include #include #include @@ -331,16 +332,17 @@ int next_visible(int current_line, int nb_lines, char **lines, matcher_t *matche ////////////////////////////////////////////////////////////////////// // The value passed to this routine in current_focus_line is the index -// of the line to highlight if it matches the matcher. The line -// highlighted is the first one matching the matcher in that order: -// (1) current_focus_line after motion, (2) the first with a greater +// of the line we should have highlited if there was no motion and if +// it matched the matcher. So, the line actually highlighted is the +// first one matching the matcher in that order: (1) +// current_focus_line after motion, (2) the first with a greater // index, (3) the first with a lesser index. // The index of the line actually shown highlighted is written in // displayed_focus_line (it can be -1) // If there is a motion and a line is actually shown highlighted, its -// value is written in current_focus_line +// value is written in current_focus_line. void update_screen(int *current_focus_line, int *displayed_focus_line, int motion, @@ -356,8 +358,7 @@ void update_screen(int *current_focus_line, int *displayed_focus_line, int console_width = getmaxx(stdscr); int console_height = getmaxy(stdscr); - // First, we find a visible line. In priority: The current, or the - // first visible after it, or the first visible before it. + // First, we find a visible line. int nb_printed_lines = 0; -- 2.20.1