fix vertex selection (#869)

This commit is contained in:
Kurt Hutten
2023-10-16 15:29:02 +11:00
committed by GitHub
parent b257b202c3
commit 8fad9ef3c2
5 changed files with 38 additions and 14 deletions

View File

@ -392,7 +392,7 @@ export function setCodeMirrorCursor({
// because we want to respect the user manually placing the cursor too.
const code = kclManager.code
if (!codeSelection) {
const selectionRangeTypeMap = dispatchCodeMirrorCursor({
const { selectionRangeTypeMap } = dispatchCodeMirrorCursor({
editorView,
selections: {
otherSelections: currestSelections.otherSelections,
@ -412,7 +412,7 @@ export function setCodeMirrorCursor({
? [...currestSelections.codeBasedSelections, codeSelection]
: [codeSelection],
}
const selectionRangeTypeMap = dispatchCodeMirrorCursor({
const { selectionRangeTypeMap } = dispatchCodeMirrorCursor({
editorView,
selections,
})