mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Fix: invalid symbol-overlay segment.
The API symbol-overlay-get-list was changed in ad77d6cd1e
.
This commit is contained in:
parent
df2397bcc5
commit
729e61a386
2 changed files with 8 additions and 5 deletions
|
@ -30,6 +30,9 @@
|
||||||
(require 'subr-x)
|
(require 'subr-x)
|
||||||
(require 'doom-modeline-core)
|
(require 'doom-modeline-core)
|
||||||
|
|
||||||
|
;; Externals
|
||||||
|
(defvar python-shell-interpreter)
|
||||||
|
|
||||||
;; Show version string for multi-version managers like rvm, rbenv, pyenv, etc.
|
;; Show version string for multi-version managers like rvm, rbenv, pyenv, etc.
|
||||||
(defvar-local doom-modeline-env--version nil
|
(defvar-local doom-modeline-env--version nil
|
||||||
"The version to display with major-mode in mode-line.
|
"The version to display with major-mode in mode-line.
|
||||||
|
|
|
@ -1020,14 +1020,14 @@ 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)
|
(when (and (doom-modeline--active)
|
||||||
|
(bound-and-true-p symbol-overlay-keywords-alist)
|
||||||
(not (bound-and-true-p symbol-overlay-temp-symbol))
|
(not (bound-and-true-p symbol-overlay-temp-symbol))
|
||||||
(not (bound-and-true-p iedit-mode)))
|
(not (bound-and-true-p iedit-mode)))
|
||||||
(let* ((keyword (symbol-overlay-assoc
|
(let* ((keyword (symbol-overlay-assoc (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 -1 symbol))
|
||||||
(after (symbol-overlay-get-list symbol 'cdr))
|
(after (symbol-overlay-get-list 1 symbol))
|
||||||
(count (length before)))
|
(count (length before)))
|
||||||
(if (symbol-overlay-assoc symbol)
|
(if (symbol-overlay-assoc symbol)
|
||||||
(propertize
|
(propertize
|
||||||
|
|
Loading…
Reference in a new issue