summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index 6e3400bd..f40d39a0 100644
--- a/src/term.c
+++ b/src/term.c
@@ -4060,7 +4060,11 @@ check_termcode(max_offset, buf, buflen)
if (tp[1 + (tp[0] != CSI)] == '>' && j == 2)
{
/* if xterm version >= 95 use mouse dragging */
- if (extra >= 95 && ttym_flags != TTYM_URXVT)
+ if (extra >= 95
+# ifdef TTYM_URXVT
+ && ttym_flags != TTYM_URXVT
+# endif
+ )
set_option_value((char_u *)"ttym", 0L,
(char_u *)"xterm2", 0);
/* if xterm version >= 141 try to get termcap codes */