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.
This commit is contained in:
Benno Schulenberg 2017-12-10 19:46:54 +01:00
parent ddb8e95d39
commit f2fb8c01f4

View File

@ -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. */