Mirror of the Vim source from https://github.com/vim/vim
修訂 | 220a9309067dfc6e7e8301b392c3499054666396 (tree) |
---|---|
時間 | 2008-02-28 00:14:04 |
作者 | vimboss |
Commiter | vimboss |
updated for version 7.1-266
@@ -4050,15 +4050,17 @@ | ||
4050 | 4050 | { |
4051 | 4051 | /* Check for xterm version string: "<Esc>[>{x};{vers};{y}c". Also |
4052 | 4052 | * eat other possible responses to t_RV, rxvt returns |
4053 | - * "<Esc>[?1;2c". Also accept CSI instead of <Esc>[. */ | |
4053 | + * "<Esc>[?1;2c". Also accept CSI instead of <Esc>[. | |
4054 | + * mrxvt has been reported to have "+" in the version. Assume | |
4055 | + * the escape sequence ends with a letter or one of "{|}~". */ | |
4054 | 4056 | if (*T_CRV != NUL && ((tp[0] == ESC && tp[1] == '[' && len >= 3) |
4055 | 4057 | || (tp[0] == CSI && len >= 2))) |
4056 | 4058 | { |
4057 | 4059 | j = 0; |
4058 | 4060 | extra = 0; |
4059 | - for (i = 2 + (tp[0] != CSI); | |
4060 | - i < len && (VIM_ISDIGIT(tp[i]) | |
4061 | - || tp[i] == ';' || tp[i] == '.'); ++i) | |
4061 | + for (i = 2 + (tp[0] != CSI); i < len | |
4062 | + && !(tp[i] >= '{' && tp[i] <= '~') | |
4063 | + && !ASCII_ISALPHA(tp[i]); ++i) | |
4062 | 4064 | if (tp[i] == ';' && ++j == 1) |
4063 | 4065 | extra = atoi((char *)tp + i + 1); |
4064 | 4066 | if (i == len) |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 266, | |
671 | +/**/ | |
670 | 672 | 265, |
671 | 673 | /**/ |
672 | 674 | 264, |