Add -S to less_cmd (fix #9)

Should keep from wrapping pre-formatted blocks.
This commit is contained in:
Case Duckworth 2021-02-25 19:39:28 -06:00
parent 556d5d241f
commit 2d60db4ce4
1 changed files with 2 additions and 1 deletions

3
bollux
View File

@ -666,7 +666,8 @@ display() { # display METADATA [TITLE]
case "$mime" in
text/*)
set_title "$title${title:+ - }bollux"
less_cmd=(less -R) # render ANSI color escapes
# render ANSI color escapes and don't wrap pre-formatted blocks
less_cmd=(less -RS)
mklesskey "$BOLLUX_LESSKEY" && less_cmd+=(-k "$BOLLUX_LESSKEY")
local helpline="o:open, g/G:goto, [:back, ]:forward, r:refresh"
less_cmd+=(