Skip to content

Commit

Permalink
Fix #61 (#62)
Browse files Browse the repository at this point in the history
* Fix #61

* Fix typo

* Fix

* Revert some changes
  • Loading branch information
wirekang authored Sep 19, 2024
1 parent 921d2d5 commit c268254
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ async function init() {
})(),
(async () => {
D.state = await D.stateManager.load();
logger.debug("state loaded:", D.state);
D.formatter.dialect = D.state.dialect;
})(),
(async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/editor-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class EditorController {
return;
}
const changes = e.changes.filter((it) => {
return it.range.startLineNumber < end;
return it.range.startLineNumber <= end;
});
if (changes.length === 0) {
return;
Expand Down

0 comments on commit c268254

Please sign in to comment.