fix(default): region handling in +default/search-buffer

+default/search-buffer now correctly uses the active selection when
invoking `consult-line` (on 'SPC s s' or 'SPC s b').

Close #5406

Co-authored-by: Sævar Berg <saevarb@users.noreply.github.com>
This commit is contained in:
Henrik Lissner
2021-09-14 19:29:08 +02:00
parent a03d30047c
commit 6b5c34a1db
2 changed files with 11 additions and 5 deletions

View File

@ -704,7 +704,7 @@
;;; <leader> s --- search
(:prefix-map ("s" . "search")
:desc "Search buffer" "b"
(cond ((featurep! :completion vertico) #'consult-line)
(cond ((featurep! :completion vertico) #'+default/search-buffer)
((featurep! :completion ivy) #'swiper)
((featurep! :completion helm) #'swiper))
:desc "Search all open buffers" "B"