From 4927673a28cfa855ec0d1e95e3e53faab0051bae Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 14 Oct 2016 19:38:26 +0200 Subject: [PATCH] Only set mouse utf 8 for tmux older than 2.2 --- .tmux.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index a90edbe..8d14bf1 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -95,9 +95,9 @@ set -g update-environment -r # Fix for shift-keys with Fn; needs correct terminfo too setw -g xterm-keys on -# Mouse support for resizing and selecting panes, default to off -set -g mouse-utf8 off -set -g mouse off +# Mouse support for resizing and selecting panes, default to off; not needed for 2.2 and up +if-shell "if [[ `tmux -V | cut -d' ' -f2` -ge 2.1 ]]; then true; else false; fi" \ + 'set -g mouse off; set -g mouse-utf8 off' # toggle mouse mode to allow mouse copy/paste # set mouse on with prefix m