From 6d0aa9f3b7c7a9a1ce7f7d44e71d13603a47d2a0 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Fri, 26 Oct 2001 15:21:41 +0000 Subject: [PATCH] More do_prev_word() fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@886 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- nano.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nano.c b/nano.c index 0f520c1d..3afe626d 100644 --- 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; } -- 2.39.5