Skip to content

Commit

Permalink
fix: don't change selection for locked code if only moving cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSaba committed Dec 13, 2024
1 parent 1d5ed92 commit 1d3e741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export function lockCodeRanges (
// Handle selection of the last line of an editable range
disposableStore.add(
editor.onDidChangeCursorSelection((e) => {
if (canEditRange(e.selection)) {
if (canEditRange(e.selection) || e.selection.isEmpty()) {
return
}
const model = editor.getModel()
Expand Down

0 comments on commit 1d3e741

Please sign in to comment.