summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2013-07-01 20:06:19 +0200
committerBram Moolenaar <bram@vim.org>2013-07-01 20:06:19 +0200
commitd6a7a8ae2f94293de736e3e139fef959d795909f (patch)
tree90c3dbb402f27c0d8be04ed4483bd3a374613fe3
parent636df6539fa22c1a0e56a667b3bc5f747cb4fb52 (diff)
downloadvim-d6a7a8ae2f94293de736e3e139fef959d795909f.tar.gz
updated for version 7.3.1281v7.3.1281v7-3-1281
Problem: When 'ttymouse' is set to "xterm2" clicking in column 123 moves the cursor to column 96. (Kevin Goodsell) Solution: Decode KE_CSI.
-rw-r--r--src/term.c6
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c
index c2c5cf8d..ddbac97a 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2947,8 +2947,10 @@ get_bytes_from_buf(buf, bytes, num_bytes)
return -1;
if (buf[len++] == (int)KS_ZERO)
c = NUL;
- ++len; /* skip KE_FILLER */
- /* else it should be KS_SPECIAL, and c already equals K_SPECIAL */
+ /* else it should be KS_SPECIAL; when followed by KE_FILLER c is
+ * K_SPECIAL, or followed by KE_CSI and c must be CSI. */
+ if (buf[len++] == (int)KE_CSI)
+ c = CSI;
}
else if (c == CSI && buf[len] == KS_EXTRA
&& buf[len + 1] == (int)KE_CSI)
diff --git a/src/version.c b/src/version.c
index 66406736..5cd95de3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1281,
+/**/
1280,
/**/
1279,