Fixed
- Embedded table mode: cursor jumps to first table after cell edit — follow-up to the multi-table fix in 0.105.0. After editing a cell in the second (or later) table and pressing Escape twice, the cursor jumped back to the first table. Two sub-bugs: (1)
activeEditTableRangewas cleared beforecloseCellEditor/tableRealigndispatches, causingbuildDecorationsto create aDecoration.replacefor the active table and displacing the cursor — fixed by keepingactiveEditTableRangeset throughout the exit and refresh lifecycle. (2) AftertableRealign,doRefreshAfterOpusedArray.find()with a 200-position threshold to re-locate the table, which returned the first table within range rather than the closest — fixed by replacing with a nearest-match loop. (#117)- Plugin:
src/vim/table-nav-controller.ts(exitCellEdit— removes prematuresetActiveEditTableRange(null)clear;doRefreshAfterOp— setsactiveEditTableRangebeforetableRealigndispatch, replacesArray.findwith nearest-match loop for post-realign table re-location)
- Plugin:
Tests
- 4 e2e test cases in
test/specs/table-cell-vim-mode.e2e.ts(issue #117, skipped — embedded widget rendering limitation in WDIO): entry into second table highlights correct widget, cell editor opens on second table not first, add row affects only second table, first table unaffected during second table navigation
Documentation
CHANGELOG.mdKNOWN_LIMITATIONS.md: Updated multi-table fix withactiveEditTableRangelifecycle andArray.findnearest-match fixesCONTRIBUTING.md: Updatedtable-nav-controller.tsdescriptiondocs/features/tables.md: Added multi-table support note to embedded mode section
Full Changelog: 0.105.0...0.105.1