From 01afcb243ca1e785864ec80bd034587ce91c7525 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 27 Feb 2020 09:35:23 +0100 Subject: [PATCH] tweaks: rename a variable, to get out of the way of a later rename --- src/text.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/text.c b/src/text.c index 984b2905..dcea0a28 100644 --- 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); } }