]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1281 v7.3.1281
authorBram Moolenaar <Bram@vim.org>
Mon, 1 Jul 2013 18:06:19 +0000 (20:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 1 Jul 2013 18:06:19 +0000 (20:06 +0200)
Problem:    When 'ttymouse' is set to "xterm2" clicking in column 123 moves
            the cursor to column 96. (Kevin Goodsell)
Solution:   Decode KE_CSI.

src/term.c
src/version.c

index c2c5cf8dbdccc96fca0d05d0968b9ec6fad59a6b..ddbac97a49120d86924a7261c2dd9d1e5199d6cf 100644 (file)
@@ -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)
index 66406736c0b989a54d4f25ffc129e2e3fe1e97b0..5cd95de377ca6783b77ea8336c32aa0ca8db3986 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1281,
 /**/
     1280,
 /**/