]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-266 v7.1.266
authorBram Moolenaar <Bram@vim.org>
Wed, 27 Feb 2008 15:14:04 +0000 (15:14 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 27 Feb 2008 15:14:04 +0000 (15:14 +0000)
src/term.c
src/version.c

index 7d148cdfc2161d327bd31eaff6bc54f83374500e..f1c71803449dfbd670b56c784c8b7625959be304 100644 (file)
@@ -4050,15 +4050,17 @@ check_termcode(max_offset, buf, buflen)
        {
            /* Check for xterm version string: "<Esc>[>{x};{vers};{y}c".  Also
             * eat other possible responses to t_RV, rxvt returns
-            * "<Esc>[?1;2c".  Also accept CSI instead of <Esc>[. */
+            * "<Esc>[?1;2c".  Also accept CSI instead of <Esc>[.
+            * mrxvt has been reported to have "+" in the version. Assume
+            * the escape sequence ends with a letter or one of "{|}~". */
            if (*T_CRV != NUL && ((tp[0] == ESC && tp[1] == '[' && len >= 3)
                                               || (tp[0] == CSI && len >= 2)))
            {
                j = 0;
                extra = 0;
-               for (i = 2 + (tp[0] != CSI);
-                       i < len && (VIM_ISDIGIT(tp[i])
-                           || tp[i] == ';' || tp[i] == '.'); ++i)
+               for (i = 2 + (tp[0] != CSI); i < len
+                               && !(tp[i] >= '{' && tp[i] <= '~')
+                               && !ASCII_ISALPHA(tp[i]); ++i)
                    if (tp[i] == ';' && ++j == 1)
                        extra = atoi((char *)tp + i + 1);
                if (i == len)
index d3a86e458630c52fec0cd7a91a9ab5f9476ff03f..82689be0f1470360cc4c4ad84c3f961f2aaa962e 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    266,
 /**/
     265,
 /**/