diff options
| author | Jules Aguillon | 2026-04-10 15:18:50 +0200 |
|---|---|---|
| committer | GitHub | 2026-04-10 15:18:50 +0200 |
| commit | 5f63214c0821368a7fa598c565ad24bdac1b4dd0 (patch) | |
| tree | fa492098373a6dbe5110dadc99b8a748c73a3174 | |
| parent | 0f3ec187c9cb2f8da1680eba6b36a04297ad16d5 (diff) | |
| download | unexpected-keyboard-5f63214c0821368a7fa598c565ad24bdac1b4dd0.tar.gz unexpected-keyboard-5f63214c0821368a7fa598c565ad24bdac1b4dd0.zip | |
Increase lookback when looking for the last word (#1226)
For example, typing "dictionarirs" suggests "dictionaries" but moving
the cursor away and back results in no suggestion. Because the lookback
was 10 characters long, the keyboard was seeing "ctionarirs".
| -rw-r--r-- | srcs/juloo.keyboard2/CurrentlyTypedWord.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/CurrentlyTypedWord.java b/srcs/juloo.keyboard2/CurrentlyTypedWord.java index 40825bb..2c7066d 100644 --- a/srcs/juloo.keyboard2/CurrentlyTypedWord.java +++ b/srcs/juloo.keyboard2/CurrentlyTypedWord.java @@ -113,7 +113,7 @@ public final class CurrentlyTypedWord if (_has_selection) set_current_word(""); else - set_current_word(_ic.getTextBeforeCursor(10, 0)); + set_current_word(_ic.getTextBeforeCursor(20, 0)); } /** Refresh the current word by immediately querying the editor. */ |
