Skip to content

Commit

Permalink
Fixed indent behaviour with single empty line
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
  • Loading branch information
mr1name committed Dec 25, 2024
1 parent 84020b3 commit b21e7d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function adjustSelectionIndent (
let insertionOffset = 0

for (const range of ranges) {
if (direction > 0 ? range.text === '' : range.indent === 0) {
if (direction > 0 ? (range.text === '' && ranges.length > 1) : range.indent === 0) {
continue
}
const indentOffset = indentLevelOffset(range.indent, direction)
Expand Down

0 comments on commit b21e7d1

Please sign in to comment.