Update preview-tui (#674)

Co-authored-by: akimdi <akimdi@users.noreply.github.com>
This commit is contained in:
lvgx 2020-07-08 17:23:35 +02:00 committed by GitHub
parent d3e20e9015
commit 53bbcbc223
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,7 @@ preview_file () {
fifo_pager man -Pcat -l "$1"
else
if exists bat; then
fifo_pager bat --paging=never --decorations=always --color=always \
fifo_pager bat --terminal-width="$cols" --paging=never --decorations=always --color=always \
"$1" 2>/dev/null
else
$PAGER "$1" &