Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[symbol-highlight-ts] Fix and simplify evil search integration
It suffices to do the evil search integration once when leaving the transient state. This also fixes an issue where, when `evil-search-module' was `evil-search', the search direction could be inconsistent after leaving the transient state: Starting in the transient state, and pressing 'N q N' would make the second 'N' move in the opposite direction of the first 'N'. To be consistent with expectations (and vanilla evil or vim) the search direction should be determined only by the function invoking the transient state (for example through the keys '*' or '#'), and not by how one moved inside it. Finally we use `thing-at-point' instead of `evil-find-thing' because the latter searches forward or backward while the transient state only looks at the symbol at point. Due to the user-error introduced in the last commit it does not practically matter (point should always already be at a symbol), but it might still be a good thing to stay consistent.
- Loading branch information