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 |
Context | Check | Description |
---|---|---|
cbaines/comparison | success | View comparision |
cbaines/git branch | success | View Git branch |
cbaines/applying patch | success | View Laminar job |
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))