jline/jline2 — pull request #15 by cosmin (2012-01-20 09:32:15+00:00)
Title: Fixed FORWARD_WORD to actually match readline behavior

The current implementation of FORWARD_WORD does not actually match readline behavior. It incorrectly moves one separator past the end of the word. To illustrate (using | to show the cursor):

Current behavior:

|one two
one |two

Readline behavior:

|one two
one| two

The current problem is because the logic in nextWord() is implementing by looking at the character before the cursor instead of the character after cursor. This pull request fixes this problem and results in matching the behavior of readline.