tweaks: elide two variables that are used just once
parent
9066a96dde
commit
0133d5cba8
|
@ -1549,10 +1549,6 @@ bool do_wrap(filestruct *line)
|
||||||
/* The text after the wrap point. */
|
/* The text after the wrap point. */
|
||||||
size_t rest_length;
|
size_t rest_length;
|
||||||
/* The length of the remainder. */
|
/* The length of the remainder. */
|
||||||
const char *next_line = NULL;
|
|
||||||
/* The next line, minus indentation. */
|
|
||||||
size_t next_line_len = 0;
|
|
||||||
/* The length of next_line. */
|
|
||||||
|
|
||||||
size_t old_x = openfile->current_x;
|
size_t old_x = openfile->current_x;
|
||||||
filestruct * old_line = openfile->current;
|
filestruct * old_line = openfile->current;
|
||||||
|
@ -1633,10 +1629,7 @@ bool do_wrap(filestruct *line)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
next_line = line->next->data;
|
if (rest_length + strlen(line->next->data) <= fill) {
|
||||||
next_line_len = strlen(next_line);
|
|
||||||
|
|
||||||
if (rest_length + next_line_len <= fill) {
|
|
||||||
/* Delete the LF to join the two lines. */
|
/* Delete the LF to join the two lines. */
|
||||||
do_delete();
|
do_delete();
|
||||||
/* Delete any leading blanks from the joined-on line. */
|
/* Delete any leading blanks from the joined-on line. */
|
||||||
|
|
Loading…
Reference in New Issue