Skip to content

Commit

Permalink
Use 0 as the default value for meow-expand-hint-counts
Browse files Browse the repository at this point in the history
  • Loading branch information
DogLooksGood committed Nov 2, 2024
1 parent f9a6b5f commit 2c7f69b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meow-visual.el
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ Value is a list of (last-regexp last-pos idx cnt).")
(setq meow--expand-nav-function (or nav-functions meow--expand-nav-function))
(when (and (not (member major-mode meow-expand-exclude-mode-list))
meow--expand-nav-function)
(let ((num (alist-get (cdr (meow--selection-type)) meow-expand-hint-counts)))
(let ((num (or
(alist-get (cdr (meow--selection-type)) meow-expand-hint-counts)
0)))
(meow--highlight-num-positions num)))))

(provide 'meow-visual)
Expand Down

0 comments on commit 2c7f69b

Please sign in to comment.