From 56eea7e195e98eedca374cfc24cc43afe73d43db Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 4 Jun 2020 03:41:42 +0530 Subject: [PATCH] Fix tmux version check --- plugins/preview-tui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/preview-tui b/plugins/preview-tui index fe130330..bd9fbd8f 100755 --- a/plugins/preview-tui +++ b/plugins/preview-tui @@ -106,7 +106,7 @@ if [ "$PREVIEW_MODE" ] ; then exit 0 fi -if [ -e "${TMUX%%,*}" ] && [ "$(tmux -V | cut -c6)" -eq 3 ] ; then +if [ -e "${TMUX%%,*}" ] && tmux -V | grep -q '[ -][3456789]\.' ; then if [ -z "$SPLIT" ] && [ $(($(tput lines) * 2)) -gt "$(tput cols)" ] ; then SPLIT='v' elif [ "$SPLIT" != 'v' ] ; then