aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/preview-tui
diff options
context:
space:
mode:
authorGravatar lvgx <l@vgx.fr>2020-07-08 17:23:35 +0200
committerGravatar GitHub <noreply@github.com>2020-07-08 20:53:35 +0530
commit53bbcbc223f013c531a2b3ea7bb7b4cb2e3df182 (patch)
treead05c7794d101855f87122478e21be30e4083b4e /plugins/preview-tui
parentd3e20e90159fb1d6064d4b7c4147aca290ba0f20 (diff)
downloadnnn-53bbcbc223f013c531a2b3ea7bb7b4cb2e3df182.tar.gz
Update preview-tui (#674)
Co-authored-by: akimdi <akimdi@users.noreply.github.com>
Diffstat (limited to 'plugins/preview-tui')
-rwxr-xr-xplugins/preview-tui2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/preview-tui b/plugins/preview-tui
index f12bf1e..4cf98ab 100755
--- a/plugins/preview-tui
+++ b/plugins/preview-tui
@@ -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" &