From a06afc7f5e7ba085abf1475a65ae3ea79c961a0e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 27 Aug 2018 23:24:16 +0200 Subject: [PATCH] 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. --- src/os_unix.c | 7 +++++++ src/version.c | 2 ++ 2 files changed, 9 insertions(+) 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, /**/ -- 2.40.0