mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Update preview-tui (#674)
Co-authored-by: akimdi <akimdi@users.noreply.github.com>
This commit is contained in:
parent
d3e20e9015
commit
53bbcbc223
|
@ -173,7 +173,7 @@ preview_file () {
|
||||||
fifo_pager man -Pcat -l "$1"
|
fifo_pager man -Pcat -l "$1"
|
||||||
else
|
else
|
||||||
if exists bat; then
|
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
|
"$1" 2>/dev/null
|
||||||
else
|
else
|
||||||
$PAGER "$1" &
|
$PAGER "$1" &
|
||||||
|
|
Loading…
Reference in a new issue