1
0
Fork 0

fixed the selection of the wrong line inside the aql query editor when an query backend error appears (#6302)

This commit is contained in:
Heiko 2018-08-30 14:51:16 +02:00 committed by Michael Hackstein
parent ad98a1a40e
commit fd81e34498
1 changed files with 8 additions and 0 deletions

View File

@ -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();
}