Commit 6abb551f authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: avoid incrementing a variable that won't be used again later

No related merge requests found
Showing with 3 additions and 4 deletions
+3 -4
......@@ -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++;
......
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