From 5f63214c0821368a7fa598c565ad24bdac1b4dd0 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Fri, 10 Apr 2026 15:18:50 +0200 Subject: 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".--- srcs/juloo.keyboard2/CurrentlyTypedWord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- cgit v1.2.3