We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04c8f60 commit 237d002Copy full SHA for 237d002
src/main/java/org/itrace/ConnectionSingleton.java
@@ -128,7 +128,7 @@ else if(tokens[0].equals("gaze")) {
128
line = logicalPosition.line + 1;
129
column = logicalPosition.column + 1;
130
131
- Document doc = FileEditorManager.getInstance(project).getSelectedTextEditor().getDocument();
+ Document doc = editor.getDocument();
132
String[] text_lines = doc.getText().split("\n");
133
if (logicalPosition.line >= text_lines.length) {
134
line = -1;
0 commit comments