Skip to content
Snippets Groups Projects
Unverified Commit 32cb5b78 authored by Romeo Van Snick's avatar Romeo Van Snick Committed by GitHub
Browse files

Avoid overwriting text on snippet insertion in some cases (#49213)

* Update cursor position when selection changes

* Add reproduction for #33640

* Revert "Add reproduction for #33640"

This reverts commit 573f6320.

We cannot reproduce the bug with tests, so having a test is useless.
parent d053ef08
No related branches found
No related tags found
No related merge requests found
......@@ -421,6 +421,7 @@ export class NativeQueryEditor extends Component<
// listen to onChange events
editor.getSession().on("change", this.onChange);
editor.getSelection().on("changeCursor", this.handleCursorChange);
editor.getSelection().on("changeSelection", this.handleCursorChange);
const minLineNumberWidth = 20;
editor.getSession().gutterRenderer = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment