From a767f16fb15ef80a66dc828245bd1840b790ac5c Mon Sep 17 00:00:00 2001 From: alinmear Date: Sun, 28 Jun 2020 09:32:41 +0200 Subject: Fixed missing -n switch on tail call --- org-recoll.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-recoll.el b/org-recoll.el index 414ee95..07a93cc 100644 --- a/org-recoll.el +++ b/org-recoll.el @@ -297,7 +297,7 @@ If PAGING is t this indicates that the function is being called to page through (insert (shell-command-to-string (concat org-recoll-command-invocation " -Q '" (org-recoll-sanitize-single-quote squery) "'"))) (insert (concat "\n" "Results: " (number-to-string org-recoll-start-of-current-page) " - " (number-to-string org-recoll-end-of-current-page) "\n\n")) ;;Print results - (insert (shell-command-to-string (concat org-recoll-command-invocation " -n '" (number-to-string org-recoll-start-of-current-page) "-" (number-to-string org-recoll-results-num) "' -q " "'" (org-recoll-sanitize-single-quote squery) "'" " | tail +3"))) + (insert (shell-command-to-string (concat org-recoll-command-invocation " -n '" (number-to-string org-recoll-start-of-current-page) "-" (number-to-string org-recoll-results-num) "' -q " "'" (org-recoll-sanitize-single-quote squery) "'" " | tail -n +3"))) ;;Format (org-recoll-format-results) ;;Prevent editing -- cgit v1.2.3