More do_prev_word() fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@886 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta 2001-10-26 15:21:41 +00:00
parent e59fc829d8
commit 6d0aa9f3b7
1 changed files with 4 additions and 2 deletions

6
nano.c
View File

@ -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;
}