set totsize properly when deleting a character or backspacing over it
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2205 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
a9b9913c6b
Коммит
c8ade44741
@ -1198,6 +1198,7 @@ void do_delete(void)
|
|||||||
if (current_x < mark_beginx && mark_beginbuf == current)
|
if (current_x < mark_beginx && mark_beginbuf == current)
|
||||||
mark_beginx -= char_len;
|
mark_beginx -= char_len;
|
||||||
#endif
|
#endif
|
||||||
|
totsize -= char_len;
|
||||||
} else if (current != filebot && (current->next != filebot ||
|
} else if (current != filebot && (current->next != filebot ||
|
||||||
current->data[0] == '\0')) {
|
current->data[0] == '\0')) {
|
||||||
/* We can delete the line before filebot only if it is blank: it
|
/* We can delete the line before filebot only if it is blank: it
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user