better current query UX

This commit is contained in:
Jan Prochazka
2021-12-12 11:56:48 +01:00
parent 6930a2543c
commit 42d7166d2b
3 changed files with 34 additions and 30 deletions

View File

@@ -189,13 +189,11 @@
currentPart = part;
if (currentPart) {
const start = currentPart.trimStart || currentPart.start;
const end = currentPart.trimEnd || currentPart.end;
currentPartMarker = editor
.getSession()
.addMarker(
new ace.Range(currentPart.start.line, currentPart.start.column, currentPart.end.line, currentPart.end.column),
'ace_active-line',
'text'
);
.addMarker(new ace.Range(start.line, start.column, end.line, end.column), 'ace_active-line', 'text');
}
}
}