changeset 17903:73f4bb1fdfba v8.1.1948

patch 8.1.1948: mouse doesn't work in Linux console Commit: https://github.com/vim/vim/commit/b5432d8968bda70fc20ebb5e136e367d174d1c4e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 30 19:28:25 2019 +0200 patch 8.1.1948: mouse doesn't work in Linux console Problem: Mouse doesn't work in Linux console and causes 100% CPU. (James P. Harvey) Solution: Loop in WaitForCharOrMouse() when gpm_process_wanted is set. (closes #4828)
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Aug 2019 19:30:03 +0200
parents 2aca8219903f
children d3e61b35a3b6
files src/os_unix.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -6007,10 +6007,11 @@ WaitForCharOrMouse(long msec, int *inter
 	gpm_process_wanted = 0;
 	avail = RealWaitForChar(read_cmd_fd, msec,
 					     &gpm_process_wanted, interrupted);
+	if (!avail && !gpm_process_wanted)
 # else
 	avail = RealWaitForChar(read_cmd_fd, msec, NULL, interrupted);
-# endif
 	if (!avail)
+# endif
 	{
 	    if (!ignore_input && input_available())
 		return 1;
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1948,
+/**/
     1947,
 /**/
     1946,