Skip to content

Commit 841e435

Browse files
committed
test(core): align emoji vertical-nav expectation with grapheme-boundary snap
The parent commit changed vertical cursor movement to snap visual columns to grapheme leading boundaries. The JS test still expected the cursor to land on visualCol 8, the second cell of the wide emoji grapheme; it now expects the snapped leading boundary 7.
1 parent af83fa2 commit 841e435

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/core/src/editor-view.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,8 @@ describe("EditorView", () => {
523523
view.moveDownVisual()
524524
cursor = view.getVisualCursor()
525525
expect(cursor.visualRow).toBe(1)
526-
expect(cursor.visualCol).toBe(8)
526+
// Col 8 sits inside 🌟 (cells 7-8); vertical movement snaps to the leading boundary.
527+
expect(cursor.visualCol).toBe(7)
527528

528529
buffer.moveCursorLeft()
529530
cursor = view.getVisualCursor()

0 commit comments

Comments
 (0)