Commit e1f7727
fix: cursor position when formatter appends characters on empty string (#652)
* fix: cursor position when formatter appends characters on empty string
* revert: fix
* test(useCursor): position caret before appended characters
* fix cursor position when formatter appends characters on empty string
* Update tests/cursor.test.tsx
* Update tests/cursor.test.tsx
---------
Co-authored-by: Pierluigi Giancola <[email protected]>
Co-authored-by: afc163 <[email protected]>1 parent fdaef5a commit e1f7727
2 files changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 53 | + | |
56 | 54 | | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
110 | 120 | | |
0 commit comments