commit afa0097ceb602c5ef09eb21936e920d44fb3776d
parent 6e960012c2cbd04c73162ad5d5948f17c49d067f
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Tue, 8 Jan 2019 15:21:56 -0600
tweaks: rename a variable, to prepare for its new role
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -2001,8 +2001,8 @@ void do_justify(bool full_justify)
filestruct *last_par_line;
/* Will be the line after the last line of the justified
* paragraph(s), if any. */
- size_t x_for_last;
- /* The x position until where to extract the last paragraph line. */
+ size_t bot_x;
+ /* The bottom x-coordinate of the paragraph we justify. */
filestruct *was_cutbuffer = cutbuffer;
/* The old cutbuffer, so we can justify in the current cutbuffer. */
@@ -2059,9 +2059,9 @@ void do_justify(bool full_justify)
/* When possible, step one line further; otherwise, to line's end. */
if (last_par_line->next != NULL) {
last_par_line = last_par_line->next;
- x_for_last = 0;
+ bot_x = 0;
} else
- x_for_last = strlen(last_par_line->data);
+ bot_x = strlen(last_par_line->data);
#ifndef NANO_TINY
add_undo(COUPLE_BEGIN);
@@ -2075,7 +2075,7 @@ void do_justify(bool full_justify)
#endif
/* Do the equivalent of a marked cut. */
extract_buffer(&cutbuffer, &cutbottom, first_par_line, 0, last_par_line,
- x_for_last);
+ bot_x);
#ifndef NANO_TINY
update_undo(CUT);
#endif