about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-02-25 19:39:28 -0600
committerCase Duckworth2021-02-25 19:39:28 -0600
commit2d60db4ce421493f38c7c81717e010833aaca50e (patch)
tree32e7c71aaef9c601a9d27619791fc271011c6fc3
parentRun shfmt on the buffer (diff)
downloadbollux-2d60db4ce421493f38c7c81717e010833aaca50e.tar.gz
bollux-2d60db4ce421493f38c7c81717e010833aaca50e.zip
Add -S to less_cmd (fix #9)
Should keep from wrapping pre-formatted blocks.
-rwxr-xr-xbollux3
1 files changed, 2 insertions, 1 deletions
diff --git a/bollux b/bollux index dcf81ae..2d206b1 100755 --- a/bollux +++ b/bollux
@@ -666,7 +666,8 @@ display() { # display METADATA [TITLE]
666 case "$mime" in 666 case "$mime" in
667 text/*) 667 text/*)
668 set_title "$title${title:+ - }bollux" 668 set_title "$title${title:+ - }bollux"
669 less_cmd=(less -R) # render ANSI color escapes 669 # render ANSI color escapes and don't wrap pre-formatted blocks
670 less_cmd=(less -RS)
670 mklesskey "$BOLLUX_LESSKEY" && less_cmd+=(-k "$BOLLUX_LESSKEY") 671 mklesskey "$BOLLUX_LESSKEY" && less_cmd+=(-k "$BOLLUX_LESSKEY")
671 local helpline="o:open, g/G:goto, [:back, ]:forward, r:refresh" 672 local helpline="o:open, g/G:goto, [:back, ]:forward, r:refresh"
672 less_cmd+=( 673 less_cmd+=(