mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.1.1323: 'mouse' option is reset when using GPM mouse
Problem: 'mouse' option is reset when using GPM mouse. Solution: Add flag for GPM mouse.
This commit is contained in:
15
src/term.c
15
src/term.c
@@ -2108,8 +2108,9 @@ set_termname(char_u *term)
|
||||
# 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
|
||||
|
||||
@@ -2149,6 +2150,11 @@ set_mouse_termcode(
|
||||
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;
|
||||
@@ -2196,6 +2202,11 @@ del_mouse_termcode(
|
||||
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;
|
||||
|
@@ -767,6 +767,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1323,
|
||||
/**/
|
||||
1322,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user