nano

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

commit 01afcb243ca1e785864ec80bd034587ce91c7525
parent b0eb73f7b30545ed1115c14a47b462df4a3a2ba0
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 27 Feb 2020 09:35:23 +0100

tweaks: rename a variable, to get out of the way of a later rename

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

diff --git a/src/text.c b/src/text.c @@ -1501,14 +1501,14 @@ bool do_wrap(void) /* When requested, snip trailing blanks off the wrapped line. */ if (ISSET(TRIM_BLANKS)) { - size_t tail_x = step_left(line->data, wrap_loc); + size_t end_x = step_left(line->data, wrap_loc); size_t typed_x = step_left(line->data, cursor_x); - while ((tail_x != typed_x || cursor_x >= wrap_loc) && - is_blank_mbchar(line->data + tail_x)) { - openfile->current_x = tail_x; + while ((end_x != typed_x || cursor_x >= wrap_loc) && + is_blank_mbchar(line->data + end_x)) { + openfile->current_x = end_x; do_delete(); - tail_x = step_left(line->data, tail_x); + end_x = step_left(line->data, end_x); } }