fixes cursor position during ctrl+z

This commit is contained in:
sergeyteleshev
2025-06-17 18:23:46 +02:00
parent 4e42b5f1af
commit d1aac8e750
@@ -108,7 +108,8 @@ export abstract class BaseSqlDataSource implements ISqlDataSource {
if (source === SOURCE_HISTORY) {
return;
}
this.history.add(script, this.cursor);
this.history.add(script, { anchor: this.cursor.anchor + 1, head: this.cursor.head + 1 });
});
this.history.onNavigate.addHandler(