cosmetic totsize-related cleanups
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2206 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
c8ade44741
commit
4d97a588e6
|
@ -1296,13 +1296,13 @@ void do_enter(void)
|
||||||
filebot = newnode;
|
filebot = newnode;
|
||||||
splice_node(current, newnode, current->next);
|
splice_node(current, newnode, current->next);
|
||||||
|
|
||||||
totsize++;
|
|
||||||
renumber(current);
|
renumber(current);
|
||||||
current = newnode;
|
current = newnode;
|
||||||
|
|
||||||
edit_refresh();
|
edit_refresh();
|
||||||
|
|
||||||
totlines++;
|
totlines++;
|
||||||
|
totsize++;
|
||||||
set_modified();
|
set_modified();
|
||||||
placewewant = xplustabs();
|
placewewant = xplustabs();
|
||||||
}
|
}
|
||||||
|
@ -3649,9 +3649,6 @@ void do_output(int *kbinput, size_t kbinput_len)
|
||||||
current_len - current_x + key_len);
|
current_len - current_x + key_len);
|
||||||
charcpy(¤t->data[current_x], key, key_len);
|
charcpy(¤t->data[current_x], key, key_len);
|
||||||
current_len += key_len;
|
current_len += key_len;
|
||||||
/* FIXME: Should totsize be the number of single-byte characters
|
|
||||||
* or the number of multibyte characters? Assume the former for
|
|
||||||
* now. */
|
|
||||||
totsize += key_len;
|
totsize += key_len;
|
||||||
set_modified();
|
set_modified();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue