diff --git a/debian/changelog b/debian/changelog index 8a7edd61..89f7c856 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ byobu (2.81) unreleased; urgency=low * usr/lib/byobu/custom * usr/lib/byobu/release * usr/lib/services + * usr/bin/byobu-status-detail * usr/bin/byobu-config, usr/share/doc/byobu/help.txt: improve help text, per feedback from Turnkey Linux users diff --git a/usr/bin/byobu-status-detail b/usr/bin/byobu-status-detail index 8d53e91c..0a1a9cf0 100755 --- a/usr/bin/byobu-status-detail +++ b/usr/bin/byobu-status-detail @@ -17,10 +17,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -if vim --version | grep -qs +folding 2>&1; then - byobu-status --detail | vim -c "set foldmethod=indent" -c "set foldminlines=0" -c "set foldnestmax=1" -c "set foldcolumn=2" -R - -elif which sensible-pager >/dev/null 2>&1; then - byobu-status --detail | sensible-pager -else - byobu-status --detail | less -fi +case "$(vim --version)" in + *+folding*) + exec byobu-status --detail | vim -c "set foldmethod=indent" -c "set foldminlines=0" -c "set foldnestmax=1" -c "set foldcolumn=2" -R - + ;; + *) + (which sensible-pager >/dev/null) && exec byobu-status --detail | sensible-pager + exec byobu-status --detail | less + ;; +esac