nano

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

commit 4d44b03fc84fe6d2e2577b0dc6478f4236d64b2a
parent 2d16c2782039abf69992e63c81e8e59196677f64
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 22 Sep 2019 17:38:22 +0200

tweaks: rename a variable, to be more compact

Diffstat:
Msrc/text.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -172,16 +172,16 @@ void do_indent(void) * but at most a tab's worth. */ size_t length_of_white(const char *text) { - size_t bytes_of_white = 0; + size_t white_count = 0; while (TRUE) { if (*text == '\t') - return ++bytes_of_white; + return ++white_count; if (*text != ' ') - return bytes_of_white; + return white_count; - if (++bytes_of_white == tabsize) + if (++white_count == tabsize) return tabsize; text++;