Skip to content

Commit bafc942

Browse files
author
dzenbot
committed
Simplifies how auto-correction was disabled when entering auto-completion mode
1 parent e7574d8 commit bafc942

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Source/Classes/SLKTextViewController.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -895,11 +895,7 @@ - (void)enableTypingSuggestionIfNeeded
895895
return;
896896
}
897897

898-
BOOL enable = !self.autoCompleting;
899-
900-
if (self.foundPrefix.length > 0) {
901-
enable = NO;
902-
}
898+
BOOL enable = !self.isAutoCompleting;
903899

904900
// Skips if the QuickType Bar isn't visible and it's trying to disable it. And the inverted logic.
905901
if (UI_IS_IOS8_AND_HIGHER && ((enable == NO && !self.isQuickTypeBarVisible) || (enable == YES && self.isQuickTypeBarVisible))) {

0 commit comments

Comments
 (0)