mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-18 02:15:44 +02:00
Fixed indent behaviour with a single empty line (#7553)
Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user