Commit 6d0aa9f3 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

More do_prev_word() fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@886 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment