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

master
Benno Schulenberg 2020-02-27 09:35:23 +01:00
parent b0eb73f7b3
commit 01afcb243c
1 changed files with 5 additions and 5 deletions

View File

@ -1501,14 +1501,14 @@ bool do_wrap(void)
/* When requested, snip trailing blanks off the wrapped line. */ /* When requested, snip trailing blanks off the wrapped line. */
if (ISSET(TRIM_BLANKS)) { 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); size_t typed_x = step_left(line->data, cursor_x);
while ((tail_x != typed_x || cursor_x >= wrap_loc) && while ((end_x != typed_x || cursor_x >= wrap_loc) &&
is_blank_mbchar(line->data + tail_x)) { is_blank_mbchar(line->data + end_x)) {
openfile->current_x = tail_x; openfile->current_x = end_x;
do_delete(); do_delete();
tail_x = step_left(line->data, tail_x); end_x = step_left(line->data, end_x);
} }
} }