nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 1b1d60b9d743c2ee7cacfa27cdd4de52ea6c02bf
parent 9c70fdaef9feec07c4ef109df8e627f523f0228a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 25 Feb 2020 16:59:27 +0100

tweaks: drop two comments that contain variable names

Grepping for those names shouldn't find comments.  Also, the name
of the relevant boolean is clear enough to not need a comment.

Diffstat:
Msrc/search.c | 2--
Msrc/text.c | 4+---
2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/search.c b/src/search.c @@ -519,8 +519,6 @@ ssize_t do_replace_loop(const char *needle, bool whole_word_only, linestruct *top, *bot; size_t top_x, bot_x; bool right_side_up = FALSE; - /* TRUE if (mark_begin, mark_begin_x) is the top of the mark, - * FALSE if (current, current_x) is. */ /* If the mark is on, frame the region, and turn the mark off. */ if (openfile->mark) { diff --git a/src/text.c b/src/text.c @@ -2245,11 +2245,9 @@ bool fix_spello(const char *word) bool result; /* The return value of searching for a misspelled word. */ #ifndef NANO_TINY - bool right_side_up = FALSE; - /* TRUE if (mark_begin, mark_begin_x) is the top of the mark, - * FALSE if (current, current_x) is. */ linestruct *top, *bot; size_t top_x, bot_x; + bool right_side_up = FALSE; #endif /* Save the current search string, then set it to the misspelled word. */