Skip to content

Commit

Permalink
hotfix speed of bracket highlighter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaspik committed Nov 30, 2020
1 parent c1d33d0 commit 540b7f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Controllers/MainViewControllers/SPCustomQuery.m
Original file line number Diff line number Diff line change
Expand Up @@ -2826,7 +2826,9 @@ - (void)textViewDidChangeSelection:(NSNotification *)aNotification
if (!historyItemWasJustInserted)
currentHistoryOffsetIndex = -1;

[self.bracketHighlighter bracketHighlight:caretPosition -1 inRange:currentQueryRange];
if (currentQueryRange.length < 1000) {
[self.bracketHighlighter bracketHighlight:caretPosition -1 inRange:currentQueryRange];
}

// Update the text of the contextual run current/previous/selection button and menu item
[self updateContextualRunInterface];
Expand Down

0 comments on commit 540b7f6

Please sign in to comment.