Commit a429dc4a authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: rename a variable, to better fit its usage

No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
...@@ -1618,13 +1618,13 @@ bool do_wrap(filestruct *line) ...@@ -1618,13 +1618,13 @@ bool do_wrap(filestruct *line)
/* 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 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); size_t typed_x = move_mbleft(line->data, old_x);
while (is_blank_mbchar(line->data + cur_x) && cur_x != typed_x) { while (tail_x != typed_x && is_blank_mbchar(line->data + tail_x)) {
openfile->current_x = cur_x; openfile->current_x = tail_x;
do_delete(); do_delete();
cur_x = move_mbleft(line->data, cur_x); tail_x = move_mbleft(line->data, tail_x);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment