From: Bram Moolenaar Date: Mon, 27 Aug 2018 21:24:16 +0000 (+0200) Subject: patch 8.1.0329: using inputlist() during startup results in garbage X-Git-Tag: v8.1.0329 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a06afc7f5e7ba085abf1475a65ae3ea79c961a0e;p=vim patch 8.1.0329: using inputlist() during startup results in garbage Problem: Using inputlist() during startup results in garbage. (Dominique Pelle) Solution: Make sure the xterm tracing is stopped when disabling the mouse. --- diff --git a/src/os_unix.c b/src/os_unix.c index 080f03c7b..99662218b 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -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 diff --git a/src/version.c b/src/version.c index 53089f5d0..26b6888c7 100644 --- a/src/version.c +++ b/src/version.c @@ -794,6 +794,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 329, /**/ 328, /**/