IDEA-207315 Run to cursor highlighting appears in diff

This commit is contained in:
Egor Ushakov
2019-02-14 16:48:17 +03:00
parent b6dd54efad
commit a5bb9ee152
@@ -370,7 +370,10 @@ public class XDebuggerManagerImpl extends XDebuggerManager implements Persistent
RangeHighlighter myCurrentHighlighter;
boolean isEnabled(@NotNull EditorMouseEvent e) {
if (e.getArea() != EditorMouseEventArea.LINE_NUMBERS_AREA || e.getEditor().getProject() != myProject) {
Editor editor = e.getEditor();
if (e.getArea() != EditorMouseEventArea.LINE_NUMBERS_AREA ||
editor.getProject() != myProject ||
!EditorUtil.isRealFileEditor(editor)) {
return false;
}
XDebugSessionImpl session = getCurrentSession();