diff options
author | Case Duckworth | 2021-02-25 19:39:28 -0600 |
---|---|---|
committer | Case Duckworth | 2021-02-25 19:39:28 -0600 |
commit | 2d60db4ce421493f38c7c81717e010833aaca50e (patch) | |
tree | 32e7c71aaef9c601a9d27619791fc271011c6fc3 | |
parent | Run shfmt on the buffer (diff) | |
download | bollux-2d60db4ce421493f38c7c81717e010833aaca50e.tar.gz bollux-2d60db4ce421493f38c7c81717e010833aaca50e.zip |
Add -S to less_cmd (fix #9)
Should keep from wrapping pre-formatted blocks.
-rwxr-xr-x | bollux | 3 |
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+=( |