From f8a64c8767b31118ed8fe53527160a922a9d63f1 Mon Sep 17 00:00:00 2001 From: "Itai Y. Efrat" Date: Tue, 13 Jul 2021 14:01:42 +0300 Subject: [PATCH] vertico: pass universal argument from vertico... motion preview commands to underlying motion commands. --- modules/completion/vertico/autoload/vertico.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/completion/vertico/autoload/vertico.el b/modules/completion/vertico/autoload/vertico.el index 7efad0113..8b8f697fd 100644 --- a/modules/completion/vertico/autoload/vertico.el +++ b/modules/completion/vertico/autoload/vertico.el @@ -121,15 +121,15 @@ Supports exporting consult-grep to wgrep, file to wdeired, and consult-location (embark-default-action))))) ;;;###autoload -(defun +vertico/next-candidate-preview () - "Move to next candidate and preivew it" +(defun +vertico/next-candidate-preview (&optional n) + "Go forward N candidates and preivew" (interactive) - (vertico-next) + (vertico-next (or n 1)) (+vertico/embark-preview)) ;;;###autoload -(defun +vertico/previous-candidate-preview () - "Move to previous candidate and preview it" +(defun +vertico/previous-candidate-preview (&optional n) + "Go backward N candidates and preivew" (interactive) - (vertico-previous) + (vertico-previous (or n 1)) (+vertico/embark-preview))