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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201908301729.x7UHT6VK028727%40masaka.moolenaar.net.

Raspunde prin e-mail lui