This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+spacemacs
duianto ba8074b604 Fix symbol highlight ts counter
problem
The Symbol Highlight Transient State (`SPC s h`) counter
ex: [2/7]

Shows: [0/0]
when opening the TS, either with `SPC s h`, `SPC s H`
or when navigating between symbols with: `#` or `*`

cause
The symbols haven't been counted yet, when the TS is opened.

And the counter is reset when `auto-highlight-symbol-mode` is disabled,
this happens when the TS is restarted, which happens when navigating to the
next/previous symbol with `#` and `*`.

solution
Highlight the symbol before opening the TS.
And only disable `auto-highlight-symbol-mode` when the TS is closed.
(when the TS buffer " *LV*" doesn't exist)

notes
This also shows the "No previously searched for symbol found" message,
when the variable `spacemacs-last-ahs-highlight-p` is void on startup.
2021-07-16 16:23:30 +02:00
..
spacemacs-completion Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
spacemacs-defaults Revert "Fix which-key entries: gr and gs in dired and magit" 2021-06-23 17:33:36 +02:00
spacemacs-editing Removed legacy codes for emacs-version < 25.1 (#14497) 2021-04-28 05:04:53 +00:00
spacemacs-editing-visual Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
spacemacs-evil Bumped minimum emacs version to 26.1 2021-05-03 22:09:11 +02:00
spacemacs-language Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
spacemacs-layouts Add workspace action messages and open home buffer (#14709) 2021-04-30 18:31:33 +00:00
spacemacs-misc Use local copy of old devdocs for emacs < 27.1 (#14823) 2021-06-03 08:01:05 +00:00
spacemacs-modeline Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
spacemacs-navigation Fix symbol highlight ts counter 2021-07-16 16:23:30 +02:00
spacemacs-org [org] Fix installation from nongnu elpa and double ownership of org 2021-05-29 22:12:28 +02:00
spacemacs-project Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
spacemacs-purpose Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
spacemacs-visual Built-in files auto-update: Mon May 3 19:32:32 UTC 2021 2021-05-03 22:17:33 +02:00