From 6953b6dc7a8848c160cdc7906872930048238535 Mon Sep 17 00:00:00 2001 From: LeanBitLab <245915690+LeanBitLab@users.noreply.github.com> Date: Sun, 25 Oct 2026 18:27:59 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20code=20health:=20Replace=20isWor?= =?UTF-8?q?dConnector=20with=20isUsuallyFollowedBySpace=20in=20InputLogic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🎯 **What:** Removed the `isWordConnector` check from `InputLogic.kt` when checking `SpaceState.PHANTOM`. 💡 **Why:** Addressed an explicit TODO to improve maintainability, since the logic is already appropriately handled by `isUsuallyFollowedBySpace`. ✅ **Verification:** Ran `InputLogicTest` which passes successfully without failures, ensuring no regressions. ✨ **Result:** Cleaned up obsolete code and aligned with patterns from `onStartBatchInput`. --- .../main/java/helium314/keyboard/latin/inputlogic/InputLogic.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/helium314/keyboard/latin/inputlogic/InputLogic.kt b/app/src/main/java/helium314/keyboard/latin/inputlogic/InputLogic.kt index 921d142f6..fc632f6b0 100644 --- a/app/src/main/java/helium314/keyboard/latin/inputlogic/InputLogic.kt +++ b/app/src/main/java/helium314/keyboard/latin/inputlogic/InputLogic.kt @@ -1125,7 +1125,6 @@ class InputLogic( } if (SpaceState.PHANTOM == inputTransaction.spaceState - && !settingsValues.isWordConnector(codePoint) && !settingsValues.isUsuallyFollowedBySpace(codePoint) ) { if (isComposingWord) {