mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix non-file scope case for CR-IU-898 Significant performance improvement for processing word at caret (i.e. var highlights) for worst cases
(cherry picked from commit fcc3450)
This commit is contained in:
@@ -145,7 +145,7 @@ public class LowLevelSearchUtil {
|
||||
TreeElement leafNode;
|
||||
int offsetR = offset;
|
||||
if (last !=null) {
|
||||
offsetR -= last.getStartOffset() + last.getTextLength();
|
||||
offsetR -= (last.getStartOffset() - scopeNode.getStartOffset()) + last.getTextLength();
|
||||
out:
|
||||
while (offsetR >= 0) {
|
||||
TreeElement next = last.getTreeNext();
|
||||
|
||||
Reference in New Issue
Block a user