From 22e808361f10b077b25ccd5ed9e614af246cf07f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E4=BA=91?= Date: Sat, 5 Dec 2020 18:29:21 +0800 Subject: [PATCH] togglecursor: make it think we're not in tmux This fixes https://github.com/jszakmeister/vim-togglecursor/issues/43 with tmux 3.1_c. --- pack/general/start/togglecursor/plugin/togglecursor.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pack/general/start/togglecursor/plugin/togglecursor.vim b/pack/general/start/togglecursor/plugin/togglecursor.vim index 07cbdfba..e304c7ea 100644 --- a/pack/general/start/togglecursor/plugin/togglecursor.vim +++ b/pack/general/start/togglecursor/plugin/togglecursor.vim @@ -53,7 +53,8 @@ let s:xterm_blinking_block = "\[0 q" let s:xterm_blinking_line = "\[5 q" let s:xterm_blinking_underline = "\[3 q" -let s:in_tmux = exists("$TMUX") +" This fixes https://github.com/jszakmeister/vim-togglecursor/issues/43 +let s:in_tmux = 0 " Detect whether this version of vim supports changing the replace cursor " natively.