diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-08-15 16:21:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-08-15 16:21:32 +0200 |
commit | 2b9578f0f8cdba144e996273bca586b384e33d90 (patch) | |
tree | 02ae5bd4f971f8f08c62248baeae4d5f62939de5 /src/feature.h | |
parent | 2430586629dfccd637a23c45793fc182d2cb2b87 (diff) | |
download | vim-2b9578f0f8cdba144e996273bca586b384e33d90.zip |
updated for version 7.3.632
Problem: Cannot select beyond 222 columns with the mouse in xterm.
Solution: Add support for SGR mouse tracking. (Hayaki Saito)
Diffstat (limited to 'src/feature.h')
-rw-r--r-- | src/feature.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/feature.h b/src/feature.h index d13e62142..f33510480 100644 --- a/src/feature.h +++ b/src/feature.h @@ -1056,6 +1056,9 @@ # ifdef FEAT_BIG # define FEAT_MOUSE_URXVT # endif +# ifdef FEAT_BIG +# define FEAT_MOUSE_SGR +# endif # if defined(FEAT_NORMAL) && (defined(MSDOS) || defined(WIN3264)) # define DOS_MOUSE # endif @@ -1077,6 +1080,11 @@ # define FEAT_MOUSE_XTERM #endif +/* sgr is a small variation of mouse_xterm, and shares its code */ +#if defined(FEAT_MOUSE_SGR) && !defined(FEAT_MOUSE_XTERM) +# define FEAT_MOUSE_XTERM +#endif + /* Define FEAT_MOUSE when any of the above is defined or FEAT_GUI. */ #if !defined(FEAT_MOUSE_TTY) \ && (defined(FEAT_MOUSE_XTERM) \ @@ -1087,7 +1095,8 @@ || defined(FEAT_MOUSE_JSB) \ || defined(FEAT_MOUSE_PTERM) \ || defined(FEAT_SYSMOUSE) \ - || defined(FEAT_MOUSE_URXVT)) + || defined(FEAT_MOUSE_URXVT) \ + || defined(FEAT_MOUSE_SGR)) # define FEAT_MOUSE_TTY /* include non-GUI mouse support */ #endif #if !defined(FEAT_MOUSE) && (defined(FEAT_MOUSE_TTY) || defined(FEAT_GUI)) |