From 9626f39277511aa59b0324113989445c312a9148 Mon Sep 17 00:00:00 2001 From: pgen Date: Thu, 11 Jan 2024 20:33:55 +0100 Subject: Fix misleading comments --- smenu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/smenu.c b/smenu.c index 4addcb1..cc867a6 100644 --- a/smenu.c +++ b/smenu.c @@ -5982,9 +5982,9 @@ move_down(win_t *win, /* """"""""""""""""""""""""""""""" */ line += page; - /* The target line cannot be before the line containing the first */ - /* selectable word. */ - /* """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" */ + /* The target line cannot be after the line containing the last */ + /* selectable word. */ + /* """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" */ if (line > last_selectable_line) { line = last_selectable_line; @@ -5993,9 +5993,9 @@ move_down(win_t *win, } else { - /* If this is not the case, search upwards for the line with a */ - /* selectable word. This line is guaranteed to exist. */ - /* """"""""""""""""""""""""""""""""""""""""""""""""""""""""""" */ + /* If this is not the case, search downwards for the line with a */ + /* selectable word. This line is guaranteed to exist. */ + /* """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""" */ while (line <= last_selectable_line) { last_word = get_line_last_word(line, last_line); -- cgit v1.2.3