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

tweaks: remove a superfluous placing of a terminating nul byte

The character move has already copied the terminating byte.
And a reallocation to save just one character of memory is
a waste of time.
No related merge requests found
Showing with 0 additions and 2 deletions
+0 -2
......@@ -109,8 +109,6 @@ void do_deletion(undo_type action)
charmove(&openfile->current->data[openfile->current_x],
&openfile->current->data[openfile->current_x + char_len],
line_len - char_len + 1);
null_at(&openfile->current->data, openfile->current_x +
line_len - char_len);
#ifndef NANO_TINY
/* Adjust the mark if it is after the cursor on the current line. */
......
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