Skip to content

Commit 36a2cf8

Browse files
author
Ignacio Romero Zurbuchen
committed
Only reload data if showing auto-completion
1 parent d9379fd commit 36a2cf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/SLKTextViewController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,9 @@ - (void)didChangeAutoCompletionPrefix:(NSString *)prefix andWord:(NSString *)wor
16351635
- (void)showAutoCompletionView:(BOOL)show
16361636
{
16371637
// Reloads the tableview before showing/hiding
1638-
[_autoCompletionView reloadData];
1638+
if (show) {
1639+
[_autoCompletionView reloadData];
1640+
}
16391641

16401642
self.autoCompleting = show;
16411643

0 commit comments

Comments
 (0)