emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/consult-recoll 9ce929510f 47/50: fix: reset index and c


From: ELPA Syncer
Subject: [elpa] externals/consult-recoll 9ce929510f 47/50: fix: reset index and current for every new search term
Date: Sat, 6 Aug 2022 18:57:43 -0400 (EDT)

branch: externals/consult-recoll
commit 9ce929510f5d418f71f46d6e7ab351f4a97adad2
Author: jao <jao@gnu.org>
Commit: jao <jao@gnu.org>

    fix: reset index and current for every new search term
---
 consult-recoll.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/consult-recoll.el b/consult-recoll.el
index d3920a0288..c98971fd7c 100644
--- a/consult-recoll.el
+++ b/consult-recoll.el
@@ -99,6 +99,8 @@ Set to nil to use the default 'title (path)' format."
 
 (defun consult-recoll--command (text)
   "Command used to perform queries for TEXT."
+  (setq consult-recoll--current nil)
+  (setq consult-recoll--index 0)
   `("recollq" "-A" "-p" "5" ,@consult-recoll-search-flags ,text))
 
 (defconst consult-recoll--line-rx "^\\(.*?\\)\t\\[\\(.*?\\)\\]\t\\[\\(.*\\)\\]"
@@ -207,8 +209,6 @@ Set to nil to use the default 'title (path)' format."
 (defun consult-recoll--search (&optional initial)
   "Perform an asynchronous recoll search via `consult--read'.
 If given, use INITIAL as the starting point of the query."
-  (setq consult-recoll--current nil)
-  (setq consult-recoll--index 0)
   (consult--read (consult--async-command
                      #'consult-recoll--command
                    (consult--async-filter #'identity)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]