Skip to content

Commit

Permalink
Maybe fix an undo issue on advanced settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Dec 4, 2023
1 parent 8f1b5c1 commit d05feda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2610,7 +2610,7 @@ function make_json_validate() {
}
if (editRange[0] < c.beforeRange[0]) {
c.beforeLines.splice(0, 0, ...maince.slice(editRange[0], c.beforeRange[0]));
c.beforeRange[0] = editRange[1];
c.beforeRange[0] = editRange[0];
}
if (c.afterRange[1] < editRange[1]) {
c.beforeLines.splice(c.beforeLines.length, 0, ...maince.slice(c.afterRange[1], editRange[1]));
Expand Down

0 comments on commit d05feda

Please sign in to comment.