Commit 1421e42
committed
fix(expand): position cursor at end of expanded class name
Fixes issue #55: after expanding a class name with the expand command,
the cursor was repositioned to its original location instead of the end
of the expanded FQCN, breaking the user's workflow.
- Calculate cursor position from word range start + replacement length
- Cursor now lands at the end of the expanded name1 parent 024d365 commit 1421e42
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments