From: Chris Allegretta Date: Fri, 26 Oct 2001 15:21:41 +0000 (+0000) Subject: More do_prev_word() fixes X-Git-Tag: v1.1.3~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6d0aa9f3b7c7a9a1ce7f7d44e71d13603a47d2a0;p=nano.git More do_prev_word() fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@886 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- 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; }