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:
parent
ddb8e95d39
commit
f2fb8c01f4
@ -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. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user