mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix: not displaying count for the first match.
This commit is contained in:
parent
1b0cbe842f
commit
9feaa79b4d
1 changed files with 12 additions and 15 deletions
|
@ -1203,10 +1203,7 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
|
||||||
|
|
||||||
(defsubst doom-modeline--symbol-overlay ()
|
(defsubst doom-modeline--symbol-overlay ()
|
||||||
"Show the number of matches for symbol overlay."
|
"Show the number of matches for symbol overlay."
|
||||||
(when (and (bound-and-true-p symbol-overlay-keywords-alist)
|
(let* ((keyword (symbol-overlay-assoc
|
||||||
(not (bound-and-true-p symbol-overlay-temp-symbol))
|
|
||||||
(not (bound-and-true-p iedit-mode)))
|
|
||||||
(when-let* ((keyword (symbol-overlay-assoc
|
|
||||||
(ignore-errors (symbol-overlay-get-symbol))))
|
(ignore-errors (symbol-overlay-get-symbol))))
|
||||||
(symbol (car keyword))
|
(symbol (car keyword))
|
||||||
(before (symbol-overlay-get-list symbol 'car))
|
(before (symbol-overlay-get-list symbol 'car))
|
||||||
|
@ -1217,7 +1214,7 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
|
||||||
(format (concat " %d/%d " (and (cadr keyword) "in scope "))
|
(format (concat " %d/%d " (and (cadr keyword) "in scope "))
|
||||||
(+ count 1)
|
(+ count 1)
|
||||||
(+ count (length after)))
|
(+ count (length after)))
|
||||||
'face (if (doom-modeline--active) 'doom-modeline-panel))))))
|
'face (if (doom-modeline--active) 'doom-modeline-panel)))))
|
||||||
|
|
||||||
(defsubst doom-modeline--multiple-cursors ()
|
(defsubst doom-modeline--multiple-cursors ()
|
||||||
"Show the number of multiple cursors."
|
"Show the number of multiple cursors."
|
||||||
|
|
Loading…
Reference in a new issue