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
spacemacs-defaults Revert "Fix which-key entries: gr and gs in dired and magit" 2021-06-23 17:33:36 +02:00
spacemacs-editing
spacemacs-editing-visual
spacemacs-evil Bumped minimum emacs version to 26.1 2021-05-03 22:09:11 +02:00
spacemacs-language
spacemacs-layouts
spacemacs-misc Use local copy of old devdocs for emacs < 27.1 (#14823) 2021-06-03 08:01:05 +00:00
spacemacs-modeline
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
spacemacs-purpose
spacemacs-visual Built-in files auto-update: Mon May 3 19:32:32 UTC 2021 2021-05-03 22:17:33 +02:00