mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-37148 - ISE: SegmentArray.findSegmentIndex
This commit is contained in:
@@ -158,9 +158,7 @@ public class XDebuggerUtilImpl extends XDebuggerUtil {
|
||||
if (editor == null) return null;
|
||||
|
||||
final Document document = editor.getDocument();
|
||||
final int offset = editor.getCaretModel().getOffset();
|
||||
int line = document.getLineNumber(offset);
|
||||
|
||||
final int line = editor.getCaretModel().getLogicalPosition().line;
|
||||
VirtualFile file = FileDocumentManager.getInstance().getFile(document);
|
||||
return XSourcePositionImpl.create(file, line);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user