Preserve cursor+window position, rather than recenter
After n/N or */# searches with evil.
This commit is contained in:
parent
7481bfd4d5
commit
fb8d96f1cb
2 changed files with 12 additions and 2 deletions
|
@ -174,7 +174,7 @@ directives. By default, this only recognizes C directives.")
|
|||
evil-ex-search-previous
|
||||
evil-ex-search-forward
|
||||
evil-ex-search-backward))
|
||||
(advice-add fn :after #'doom-recenter-a))
|
||||
(advice-add fn :around #'doom-preserve-window-position-a))
|
||||
|
||||
;; --- custom interactive codes -----------
|
||||
;; These arg types will highlight matches in the current buffer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue