diff mbox series

[bug#39642,3/3] ui: Don't truncate search output when inside Emacs.

Message ID 20200217134246.2312-2-mail@ambrevar.xyz
State Accepted
Headers show
Series [bug#39642,1/3] ui: Only display link in capable terminals. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job

Commit Message

Pierre Neidhardt Feb. 17, 2020, 1:42 p.m. UTC
* guix/ui.scm (display-search-results): Loop over all results when
  INSIDE_EMACS is set.
---
 guix/ui.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/guix/ui.scm b/guix/ui.scm
index 7e3251446f..77e538ccfb 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -1472,7 +1472,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))