mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-10 03:22:04 +03:00
tweaks: avoid incrementing a variable that won't be used again later
This commit is contained in:
parent
97bdf13b59
commit
6abb551fdd
@ -1623,10 +1623,9 @@ bool do_wrap(filestruct *line)
|
||||
#ifndef NANO_TINY
|
||||
add_undo(ADD);
|
||||
#endif
|
||||
line_len++;
|
||||
line->data = charealloc(line->data, line_len + 1);
|
||||
line->data[line_len - 1] = ' ';
|
||||
line->data[line_len] = '\0';
|
||||
line->data = charealloc(line->data, line_len + 2);
|
||||
line->data[line_len] = ' ';
|
||||
line->data[line_len + 1] = '\0';
|
||||
after_break = line->data + wrap_loc;
|
||||
after_break_len++;
|
||||
openfile->totsize++;
|
||||
|
Loading…
Reference in New Issue
Block a user