To: vim_dev@googlegroups.com Subject: Patch 8.1.1948 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.1948 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) Files: src/os_unix.c *** ../vim-8.1.1947/src/os_unix.c 2019-08-15 23:05:46.042376801 +0200 --- src/os_unix.c 2019-08-30 19:22:17.155757359 +0200 *************** *** 6007,6016 **** gpm_process_wanted = 0; avail = RealWaitForChar(read_cmd_fd, msec, &gpm_process_wanted, interrupted); # else avail = RealWaitForChar(read_cmd_fd, msec, NULL, interrupted); - # endif if (!avail) { if (!ignore_input && input_available()) return 1; --- 6007,6017 ---- 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); if (!avail) + # endif { if (!ignore_input && input_available()) return 1; *** ../vim-8.1.1947/src/version.c 2019-08-30 19:05:29.039181589 +0200 --- src/version.c 2019-08-30 19:27:34.685676920 +0200 *************** *** 763,764 **** --- 763,766 ---- { /* Add new patch number below this line */ + /**/ + 1948, /**/ -- hundred-and-one symptoms of being an internet addict: 144. You eagerly await the update of the "Cool Site of the Day." /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///