diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2015-10-28 21:02:32 +0200 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2015-10-29 08:45:54 +0000 |
commit | c51d8c4f27115f5efa2d58c64a5af4bda037a21e (patch) | |
tree | d7403d38645da28105fd9c26462e6227b6cda430 /src/virtualkeyboard/hunspellinputmethod.cpp | |
parent | 4693f6b37bf655883bcb86fa65a1f67bcb394f40 (diff) |
Fix reselect on a word ending to a word joiner
This change fixes a bug in reselect feature where the reselect
did not work if the word ends to a word joiner (apostrophe, hyphen).
The change applies to HunspellInputMethod, LipiInputMethod and
T9WriteInputMethod.
Change-Id: I8147177c6682918dd77090d3e4d20e28acbf86b2
Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/virtualkeyboard/hunspellinputmethod.cpp')
-rw-r--r-- | src/virtualkeyboard/hunspellinputmethod.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virtualkeyboard/hunspellinputmethod.cpp b/src/virtualkeyboard/hunspellinputmethod.cpp index a911b487..db090e09 100644 --- a/src/virtualkeyboard/hunspellinputmethod.cpp +++ b/src/virtualkeyboard/hunspellinputmethod.cpp @@ -232,7 +232,7 @@ bool HunspellInputMethod::reselect(int cursorPosition, const InputEngine::Resele d->word.append(c); } - while (replaceFrom < -d->word.length()) { + while (replaceFrom > -d->word.length()) { int lastPos = d->word.length() - 1; if (!d->isJoiner(d->word.at(lastPos))) break; |