summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2024-01-11 20:33:55 +0100
committerpgen <p.gen.progs@gmail.com>2024-01-11 20:33:55 +0100
commit9626f39277511aa59b0324113989445c312a9148 (patch)
tree717dad524824018915123d1d3dc7ba19ab7b2b9e
parentc8ce702fc603621d30bb429126b51fc8f868e504 (diff)
Fix misleading comments
-rw-r--r--smenu.c12
1 files 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);