nano

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

commit a429dc4a7670ebaaf168d2a0928294d376fbf161
parent 91073be49c5d23c7e54ba4e09098d5b56d7a22e3
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 23 Jan 2018 13:09:12 +0100

tweaks: rename a variable, to better fit its usage

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

diff --git a/src/text.c b/src/text.c @@ -1618,13 +1618,13 @@ bool do_wrap(filestruct *line) /* When requested, snip trailing blanks off the wrapped line. */ if (ISSET(TRIM_BLANKS)) { - size_t cur_x = move_mbleft(line->data, wrap_loc); + size_t tail_x = move_mbleft(line->data, wrap_loc); size_t typed_x = move_mbleft(line->data, old_x); - while (is_blank_mbchar(line->data + cur_x) && cur_x != typed_x) { - openfile->current_x = cur_x; + while (tail_x != typed_x && is_blank_mbchar(line->data + tail_x)) { + openfile->current_x = tail_x; do_delete(); - cur_x = move_mbleft(line->data, cur_x); + tail_x = move_mbleft(line->data, tail_x); } }