mirror of https://gitee.com/bigwinds/arangodb
fixed the selection of the wrong line inside the aql query editor when an query backend error appears (#6302)
This commit is contained in:
parent
ad98a1a40e
commit
fd81e34498
|
@ -2638,6 +2638,14 @@
|
|||
var found = this.aqlEditor.find(text);
|
||||
|
||||
if (!found && pos) {
|
||||
try {
|
||||
row = parseInt(row);
|
||||
if (row > 0) {
|
||||
row = row - 1;
|
||||
}
|
||||
} catch (ignore) {
|
||||
}
|
||||
|
||||
this.aqlEditor.selection.moveCursorToPosition({row: row, column: 0});
|
||||
this.aqlEditor.selection.selectLine();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue