nano

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

commit 802a20b2227ffa885d14ae6e26f5ca20c45a8d2a
parent 88f7ec38f81c7f4c7fe3d5855954320cf3231609
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 16 Sep 2021 12:32:19 +0200

tweaks: rename a variable, to be more grammatical

Diffstat:
Msrc/cut.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/cut.c b/src/cut.c @@ -249,14 +249,14 @@ void extract_segment(linestruct *top, size_t top_x, linestruct *bot, size_t bot_ bool same_line = (openfile->mark == top); bool post_marked = (openfile->mark && (openfile->mark->lineno > top->lineno || (same_line && openfile->mark_x > top_x))); - bool was_anchored = top->has_anchor; + bool had_anchor = top->has_anchor; if (top == bot && top_x == bot_x) return; if (top != bot) for (linestruct *line = top->next; line != bot->next; line = line->next) - was_anchored |= line->has_anchor; + had_anchor |= line->has_anchor; #endif if (top == bot) { @@ -326,7 +326,7 @@ void extract_segment(linestruct *top, size_t top_x, linestruct *bot, size_t bot_ openfile->current_x = top_x; #ifndef NANO_TINY - openfile->current->has_anchor = was_anchored; + openfile->current->has_anchor = had_anchor; if (post_marked || same_line) openfile->mark = openfile->current;