diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-19 21:41:30 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-19 21:46:34 +0100 |
commit | 4b7149a68e70737ea05514bda26cd64dc8d5909a (patch) | |
tree | 8110f6dcc097f8618feface767b41c2ffb27f263 /src/local/pager.nim | |
parent | 29759b63db0419272a775c333130c12fcb9c0261 (diff) | |
download | chawan-4b7149a68e70737ea05514bda26cd64dc8d5909a.tar.gz |
pager: do not ask to download text/*
it's text, so we can display it anyway.
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r-- | src/local/pager.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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('/')) |