mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java inspection: When the element to be processed by information-level inspections is a whitespace (and the caret is at the start of the white space) process the nearest previous non-space element instead. (IDEA-157727)
This commit is contained in:
@@ -315,7 +315,7 @@ public class ShowIntentionsPass extends TextEditorHighlightingPass {
|
||||
if (HighlightingLevelManager.getInstance(project).shouldInspect(hostFile)) {
|
||||
PsiElement adjustedElement = psiElement;
|
||||
int adjustedOffset = offset;
|
||||
if (psiElement instanceof PsiWhiteSpace) {
|
||||
if (psiElement instanceof PsiWhiteSpace && offset == psiElement.getTextRange().getStartOffset()) {
|
||||
final PsiElement prev = psiElement.getPrevSibling();
|
||||
if (prev != null) {
|
||||
adjustedElement = prev;
|
||||
|
||||
Reference in New Issue
Block a user