aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralraban <alexander.raban@gmail.com>2020-06-28 15:19:50 -0400
committerGitHub <noreply@github.com>2020-06-28 15:19:50 -0400
commit1e21fbc70b5e31b746257c12d00acba3dcc1dd5c (patch)
treea238970b98d1c103e1297d62dbadfaf80f191f73
parent3fdf9db321b335a8d05a3d7ca4bd9509ac5a0214 (diff)
parenta767f16fb15ef80a66dc828245bd1840b790ac5c (diff)
Merge pull request #8 from alinmear/master
Fixed missing -n switch on tail call
-rw-r--r--org-recoll.el2
1 files changed, 1 insertions, 1 deletions
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