skip a line end white | 跳过末尾的一个空白字符
This commit is contained in:
@@ -16,7 +16,7 @@ public class ResolveElementRightToLeftUtils {
|
|||||||
if (startOffset == endOffset) {
|
if (startOffset == endOffset) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
PsiElement element = viewProvider.findElementAt(endOffset, JavaLanguage.INSTANCE);
|
PsiElement element = viewProvider.findElementAt(endOffset - 1, JavaLanguage.INSTANCE);
|
||||||
if (element == null) {
|
if (element == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user