Skip to content

Commit e6373f4

Browse files
authored
[lexical-react][lexical-dev-tools-core] Bug Fix: TreeView selection indicator (facebook#6336)
1 parent e9efd81 commit e6373f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/lexical-devtools-core/src/generateContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ function $printSelectedCharsLine({
445445
];
446446
const unselectedChars = Array(start + 1).fill(' ');
447447
const selectedChars = Array(end - start).fill(SYMBOLS.selectedChar);
448-
const paddingLength = typeDisplay.length + 3; // 2 for the spaces around + 1 for the double quote.
448+
const paddingLength = typeDisplay.length + 2; // 1 for the space after + 1 for the double quote.
449449

450450
const nodePrintSpaces = Array(nodeKeyDisplay.length + paddingLength).fill(
451451
' ',

0 commit comments

Comments
 (0)