mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-18 23:20:54 +00:00
fix issue that could result in autospace being added before period
This commit is contained in:
parent
b600431af9
commit
c0b14635fd
2 changed files with 4 additions and 7 deletions
|
@ -949,7 +949,9 @@ public final class InputLogic {
|
|||
// TODO: remove isWordConnector() and use isUsuallyFollowedBySpace() instead.
|
||||
// See onStartBatchInput() to see how to do it.
|
||||
if (SpaceState.PHANTOM == inputTransaction.getMSpaceState()
|
||||
&& !settingsValues.isWordConnector(codePoint)) {
|
||||
&& !settingsValues.isWordConnector(codePoint)
|
||||
&& !settingsValues.isUsuallyFollowedBySpace(codePoint) // only relevant in rare cases
|
||||
) {
|
||||
if (isComposingWord) {
|
||||
// Sanity check
|
||||
throw new RuntimeException("Should not be composing here");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue