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.
- package/dist/cli.js +2 -1
- 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
|
|
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;
|