From 4b7149a68e70737ea05514bda26cd64dc8d5909a Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 19 Mar 2024 21:41:30 +0100 Subject: pager: do not ask to download text/* it's text, so we can display it anyway. --- src/local/pager.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/local/pager.nim') diff --git a/src/local/pager.nim b/src/local/pager.nim index e7d771c0..3a9c3aa7 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -1582,7 +1582,7 @@ proc connected(pager: Pager; container: Container; response: Response) = container.contentType.get & ";charset=" & $container.charset let mailcapRes = pager.checkMailcap(container, istream, response.outputId, realContentType) - if not mailcapRes.found: + if not mailcapRes.found and container.contentType.get.until('/') != "text": pager.setLineEdit(lmDownload, pager.config.external.download_dir & container.url.pathname.afterLast('/')) -- cgit 1.4.1-2-gfad0