mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -6007,10 +6007,11 @@ WaitForCharOrMouse(long msec, int *interrupted, int ignore_input)
|
|||||||
gpm_process_wanted = 0;
|
gpm_process_wanted = 0;
|
||||||
avail = RealWaitForChar(read_cmd_fd, msec,
|
avail = RealWaitForChar(read_cmd_fd, msec,
|
||||||
&gpm_process_wanted, interrupted);
|
&gpm_process_wanted, interrupted);
|
||||||
|
if (!avail && !gpm_process_wanted)
|
||||||
# else
|
# else
|
||||||
avail = RealWaitForChar(read_cmd_fd, msec, NULL, interrupted);
|
avail = RealWaitForChar(read_cmd_fd, msec, NULL, interrupted);
|
||||||
# endif
|
|
||||||
if (!avail)
|
if (!avail)
|
||||||
|
# endif
|
||||||
{
|
{
|
||||||
if (!ignore_input && input_available())
|
if (!ignore_input && input_available())
|
||||||
return 1;
|
return 1;
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1948,
|
||||||
/**/
|
/**/
|
||||||
1947,
|
1947,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user