tmux-fuzzy-motion 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +2 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -5634,7 +5634,8 @@ const createOverlayRenderer = (lines) => {
5634
5634
  const baseWidth = measureCellWidth(cells, hintCol);
5635
5635
  const paddedHint = hintCol < matchCol ? target.hint.padEnd(baseWidth, " ") : target.hint;
5636
5636
  const hintWidth = displayWidth(paddedHint);
5637
- const highlightCols = target.positions.filter((position) => position !== target.primary).map((position) => target.col + position);
5637
+ const shouldHighlightPrimary = hintCol < matchCol;
5638
+ const highlightCols = target.positions.filter((position) => position !== target.primary || shouldHighlightPrimary).map((position) => target.col + position);
5638
5639
  const isEnterTarget = enterTarget?.line === target.line && enterTarget.col === target.col && enterTarget.text === target.text;
5639
5640
  const hintStyle = isEnterTarget ? PRIMARY_HINT_STYLE : SECONDARY_HINT_STYLE;
5640
5641
  const highlightStyle = isEnterTarget ? PRIMARY_HIGHLIGHT_STYLE : SECONDARY_HIGHLIGHT_STYLE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmux-fuzzy-motion",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Fuzzy hint motion for tmux copy-mode",
5
5
  "type": "module",
6
6
  "files": [