diff --git a/plugins/text-editor-resources/src/components/extension/indent.ts b/plugins/text-editor-resources/src/components/extension/indent.ts index a723a674d65..e3e1820dd95 100644 --- a/plugins/text-editor-resources/src/components/extension/indent.ts +++ b/plugins/text-editor-resources/src/components/extension/indent.ts @@ -125,7 +125,7 @@ export function adjustSelectionIndent ( let insertionOffset = 0 for (const range of ranges) { - if (direction > 0 ? (range.text === '' && ranges.length > 1) : range.indent === 0) { + if (direction > 0 ? range.text === '' && ranges.length > 1 : range.indent === 0) { continue } const indentOffset = indentLevelOffset(range.indent, direction)