forked from aniani/vim
patch 8.1.2171: mouse support not always available
Problem: Mouse support not always available. Solution: Enable mouse support also in tiny version. Do not define FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
This commit is contained in:
@@ -847,9 +847,7 @@ get_keystroke(void)
|
||||
n = TO_SPECIAL(buf[1], buf[2]);
|
||||
if (buf[1] == KS_MODIFIER
|
||||
|| n == K_IGNORE
|
||||
#ifdef FEAT_MOUSE
|
||||
|| (is_mouse_key(n) && n != K_LEFTMOUSE)
|
||||
#endif
|
||||
#ifdef FEAT_GUI
|
||||
|| n == K_VER_SCROLLBAR
|
||||
|| n == K_HOR_SCROLLBAR
|
||||
@@ -929,14 +927,12 @@ get_number(
|
||||
}
|
||||
n /= 10;
|
||||
}
|
||||
#ifdef FEAT_MOUSE
|
||||
else if (mouse_used != NULL && c == K_LEFTMOUSE)
|
||||
{
|
||||
*mouse_used = TRUE;
|
||||
n = mouse_row + 1;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
else if (n == 0 && c == ':' && colon)
|
||||
{
|
||||
stuffcharReadbuff(':');
|
||||
|
Reference in New Issue
Block a user