nano

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

commit e59fc829d89baa8ab93f9be134c528546f88fc5b
parent a1a6a7fda6ae771b073a02db9207e24e10b666f0
Author: Chris Allegretta <chrisa@asty.org>
Date:   Wed, 24 Oct 2001 18:07:58 +0000

Okay, now fix do_prev_word so it doesn't crash when it hits a blank line, it's still not perfect =/


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

Diffstat:
Mnano.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nano.c b/nano.c @@ -840,7 +840,7 @@ void do_prev_word(void) if (i == 0) { if (fileptr->prev != NULL) - i = strlen(fileptr->prev->data) - 1; + i = strlen(fileptr->prev->data); else if (fileptr == fileage && filebot != NULL) { current_x = 0; return; @@ -864,7 +864,7 @@ void do_prev_word(void) } if (fileptr->prev != NULL) - i = strlen(fileptr->prev->data) - 1; + i = strlen(fileptr->prev->data); else if (fileptr == fileage && filebot != NULL) { current_x = 0; return;