Problem: 'mouse' option is reset when using GPM mouse.
Solution: Add flag for GPM mouse.
# define HMT_JSBTERM 8
# define HMT_PTERM 16
# define HMT_URXVT 32
-# define HMT_SGR 64
-# define HMT_SGR_REL 128
+# define HMT_GPM 64
+# define HMT_SGR 128
+# define HMT_SGR_REL 256
static int has_mouse_termcode = 0;
# endif
if (n == KS_URXVT_MOUSE)
has_mouse_termcode |= HMT_URXVT;
else
+# endif
+# ifdef FEAT_MOUSE_GPM
+ if (n == KS_GPM_MOUSE)
+ has_mouse_termcode |= HMT_GPM;
+ else
# endif
if (n == KS_SGR_MOUSE)
has_mouse_termcode |= HMT_SGR;
if (n == KS_URXVT_MOUSE)
has_mouse_termcode &= ~HMT_URXVT;
else
+# endif
+# ifdef FEAT_MOUSE_GPM
+ if (n == KS_GPM_MOUSE)
+ has_mouse_termcode &= ~HMT_GPM;
+ else
# endif
if (n == KS_SGR_MOUSE)
has_mouse_termcode &= ~HMT_SGR;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1323,
/**/
1322,
/**/