nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 4d97a588e6c50391e5da25f599ceb84d7cd6d694
parent c8ade4474130c7521d5b9ec7d8a0712103a72f7e
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Wed, 29 Dec 2004 16:42:48 +0000

cosmetic totsize-related cleanups


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2206 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/nano.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -1296,13 +1296,13 @@ void do_enter(void) filebot = newnode; splice_node(current, newnode, current->next); - totsize++; renumber(current); current = newnode; edit_refresh(); totlines++; + totsize++; set_modified(); placewewant = xplustabs(); } @@ -3649,9 +3649,6 @@ void do_output(int *kbinput, size_t kbinput_len) current_len - current_x + key_len); charcpy(&current->data[current_x], key, 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; set_modified();