mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 00:10:37 +00:00
Fixed indent behaviour with a single empty line (#7553)
Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
parent
780721f7fd
commit
436dfd3fc2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user