use actual (maybe unsaved) psi text for find usages (EA-49575)

This commit is contained in:
peter
2013-09-05 16:02:45 +02:00
parent b138d0500d
commit 68d131bbbc
@@ -148,7 +148,7 @@ public class LowLevelSearchUtil {
if (progress != null) progress.checkCanceled();
PsiFile file = scope.getContainingFile();
final CharSequence buffer = file.getViewProvider().getContents();
final CharSequence buffer = file.getText();
TextRange range = scope.getTextRange();
if (range == null) {