Created
September 12, 2012 10:13
-
-
Save saitoha/3705739 to your computer and use it in GitHub Desktop.
Add support for has("mouse_urxvt"), has("mouse_sgr"), and Fix a bug in ttymouse auto-recognization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -r 1052677493be src/eval.c | |
| --- a/src/eval.c Wed Sep 05 19:17:42 2012 +0200 | |
| +++ b/src/eval.c Wed Sep 12 19:09:44 2012 +0900 | |
| @@ -12274,9 +12274,15 @@ | |
| # ifdef FEAT_MOUSE_PTERM | |
| "mouse_pterm", | |
| # endif | |
| +# ifdef FEAT_MOUSE_SGR | |
| + "mouse_sgr", | |
| +# endif | |
| # ifdef FEAT_SYSMOUSE | |
| "mouse_sysmouse", | |
| # endif | |
| +# ifdef FEAT_MOUSE_URXVT | |
| + "mouse_urxvt", | |
| +# endif | |
| # ifdef FEAT_MOUSE_XTERM | |
| "mouse_xterm", | |
| # endif | |
| diff -r 1052677493be src/feature.h | |
| --- a/src/feature.h Wed Sep 05 19:17:42 2012 +0200 | |
| +++ b/src/feature.h Wed Sep 12 19:09:44 2012 +0900 | |
| @@ -1038,8 +1038,10 @@ | |
| * +mouse_gpm Unix only: Include code for Linux console mouse | |
| * handling. | |
| * +mouse_pterm PTerm mouse support for QNX | |
| + * +mouse_sgr Unix only: Include code for for SGR-styled mouse. | |
| * +mouse_sysmouse Unix only: Include code for FreeBSD and DragonFly | |
| * console mouse handling. | |
| + * +mouse_urxvt Unix only: Include code for for urxvt mosue handling. | |
| * +mouse Any mouse support (any of the above enabled). | |
| */ | |
| /* OS/2 and Amiga console have no mouse support */ | |
| diff -r 1052677493be src/term.c | |
| --- a/src/term.c Wed Sep 05 19:17:42 2012 +0200 | |
| +++ b/src/term.c Wed Sep 12 19:09:44 2012 +0900 | |
| @@ -4084,6 +4084,9 @@ | |
| # ifdef TTYM_URXVT | |
| && ttym_flags != TTYM_URXVT | |
| # endif | |
| +# ifdef TTYM_SGR | |
| + && ttym_flags != TTYM_SGR | |
| +# endif | |
| ) | |
| set_option_value((char_u *)"ttym", 0L, | |
| (char_u *)"sgr", 0); | |
| @@ -4094,6 +4097,9 @@ | |
| # ifdef TTYM_URXVT | |
| && ttym_flags != TTYM_URXVT | |
| # endif | |
| +# ifdef TTYM_SGR | |
| + && ttym_flags != TTYM_SGR | |
| +# endif | |
| ) | |
| set_option_value((char_u *)"ttym", 0L, | |
| (char_u *)"xterm2", 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment