nano

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

commit 6d0aa9f3b7c7a9a1ce7f7d44e71d13603a47d2a0
parent e59fc829d89baa8ab93f9be134c528546f88fc5b
Author: Chris Allegretta <chrisa@asty.org>
Date:   Fri, 26 Oct 2001 15:21:41 +0000

More do_prev_word() fixes


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

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

diff --git a/nano.c b/nano.c @@ -858,8 +858,10 @@ void do_prev_word(void) while (isalnum((int) fileptr->data[i]) && i != 0) i--; - i++; - if (i != 0) + if (!isalnum((int) fileptr->data[i])) + i++; + + if (i != 0 || i != current_x) break; }