summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorPierre Neidhardt <mail@ambrevar.xyz>2020-02-17 14:38:48 +0100
committerPierre Neidhardt <mail@ambrevar.xyz>2020-02-24 11:01:52 +0100
commit9b7f9e6f9ba8dc9ea8b99573e0862856ff1b9475 (patch)
tree11dfd0b3ed6aabc2d8ea6141a1c329ff1753c270 /guix
parent672d3d4a87839b0692c307df0edb66cd16bcbf1a (diff)
downloadpatches-9b7f9e6f9ba8dc9ea8b99573e0862856ff1b9475.tar
patches-9b7f9e6f9ba8dc9ea8b99573e0862856ff1b9475.tar.gz
ui: Don't truncate search output when inside Emacs.
* guix/ui.scm (display-search-results): Loop over all results when INSIDE_EMACS is set.
Diffstat (limited to 'guix')
-rw-r--r--guix/ui.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/ui.scm b/guix/ui.scm
index 371af4e047..22a6d6c8e3 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -1473,7 +1473,8 @@ them. If PORT is a terminal, print at most a full screen of results."
#:hyperlinks? links?
#:extra-fields
`((relevance . ,score)))))))
- (if (and max-rows
+ (if (and (not (getenv "INSIDE_EMACS"))
+ max-rows
(> (port-line port) first-line) ;print at least one result
(> (+ 4 (line-count text) (port-line port))
max-rows))