mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Exit mirror cursor mode when there's a none-empty selection in an unmmatched state
This commit is contained in:
@@ -128,6 +128,16 @@ export function activateMirrorCursor(
|
||||
workspace.applyEdit(cleanupEdit);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
const charBeforeAndAfterPositionsRoughlyEqual = isCharBeforeAndAfterPositionsRoughlyEqual(
|
||||
event.textEditor.document,
|
||||
event.selections[0].active,
|
||||
event.selections[1].active
|
||||
);
|
||||
|
||||
if (!charBeforeAndAfterPositionsRoughlyEqual) {
|
||||
exitMirrorMode();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user