summaryrefslogtreecommitdiff
path: root/src/feature.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-10-20 21:09:35 +0200
committerBram Moolenaar <Bram@vim.org>2011-10-20 21:09:35 +0200
commitc842748302d33bcf41c6b796a43d9dbbf44cdc29 (patch)
treed16038ab394271bfe0e2765cdec768746d767378 /src/feature.h
parent62dbdc4a5ae16900d17473dbfe3be3acea321bf0 (diff)
downloadvim-git-c842748302d33bcf41c6b796a43d9dbbf44cdc29.tar.gz
updated for version 7.3.343v7.3.343
Problem: No mouse support for urxvt. Solution: Implement urxvt mouse support, also for > 252 columns. (Yiding Jia)
Diffstat (limited to 'src/feature.h')
-rw-r--r--src/feature.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/feature.h b/src/feature.h
index 2fdd901b3..6d5387ed0 100644
--- a/src/feature.h
+++ b/src/feature.h
@@ -1053,6 +1053,9 @@
# ifdef FEAT_BIG
# define FEAT_MOUSE_DEC
# endif
+# ifdef FEAT_BIG
+# define FEAT_MOUSE_URXVT
+# endif
# if defined(FEAT_NORMAL) && (defined(MSDOS) || defined(WIN3264))
# define DOS_MOUSE
# endif
@@ -1068,13 +1071,23 @@
#if defined(FEAT_NORMAL) && defined(HAVE_SYSMOUSE)
# define FEAT_SYSMOUSE
#endif
+
+/* urxvt is a small variation of mouse_xterm, and shares its code */
+#if defined(FEAT_MOUSE_URXVT) && !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) \
- || defined(FEAT_MOUSE_NET) || defined(FEAT_MOUSE_DEC) \
- || defined(DOS_MOUSE) || defined(FEAT_MOUSE_GPM) \
- || defined(FEAT_MOUSE_JSB) || defined(FEAT_MOUSE_PTERM) \
- || defined(FEAT_SYSMOUSE))
+ || defined(FEAT_MOUSE_NET) \
+ || defined(FEAT_MOUSE_DEC) \
+ || defined(DOS_MOUSE) \
+ || defined(FEAT_MOUSE_GPM) \
+ || defined(FEAT_MOUSE_JSB) \
+ || defined(FEAT_MOUSE_PTERM) \
+ || defined(FEAT_SYSMOUSE) \
+ || defined(FEAT_MOUSE_URXVT))
# define FEAT_MOUSE_TTY /* include non-GUI mouse support */
#endif
#if !defined(FEAT_MOUSE) && (defined(FEAT_MOUSE_TTY) || defined(FEAT_GUI))