]> granicus.if.org Git - vim/commitdiff
patch 8.1.0329: using inputlist() during startup results in garbage v8.1.0329
authorBram Moolenaar <Bram@vim.org>
Mon, 27 Aug 2018 21:24:16 +0000 (23:24 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 27 Aug 2018 21:24:16 +0000 (23:24 +0200)
Problem:    Using inputlist() during startup results in garbage. (Dominique
            Pelle)
Solution:   Make sure the xterm tracing is stopped when disabling the mouse.

src/os_unix.c
src/version.c

index 080f03c7bacb9a24c38ed2f16940359a4af51b4f..99662218b641949746f65c17b7c3ee9ce1548aec 100644 (file)
@@ -3664,6 +3664,13 @@ mch_setmouse(int on)
 # endif
     int                xterm_mouse_vers;
 
+# if defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)
+    if (!on)
+       // Make sure not tracing mouse movements.  Important when a button-down
+       // was received but no release yet.
+       stop_xterm_trace();
+# endif
+
     if (on == mouse_ison
 # ifdef FEAT_BEVAL_TERM
            && p_bevalterm == bevalterm_ison
index 53089f5d0c602f9cf5cc3aadfa5fbf6ed1320093..26b6888c78f6b72c8b085497830fddad639cc167 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    329,
 /**/
     328,
 /**/