mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.1-266
This commit is contained in:
parent
cf5a5b8e75
commit
c9dd5bc263
10
src/term.c
10
src/term.c
@ -4050,15 +4050,17 @@ check_termcode(max_offset, buf, buflen)
|
|||||||
{
|
{
|
||||||
/* Check for xterm version string: "<Esc>[>{x};{vers};{y}c". Also
|
/* Check for xterm version string: "<Esc>[>{x};{vers};{y}c". Also
|
||||||
* eat other possible responses to t_RV, rxvt returns
|
* 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)
|
if (*T_CRV != NUL && ((tp[0] == ESC && tp[1] == '[' && len >= 3)
|
||||||
|| (tp[0] == CSI && len >= 2)))
|
|| (tp[0] == CSI && len >= 2)))
|
||||||
{
|
{
|
||||||
j = 0;
|
j = 0;
|
||||||
extra = 0;
|
extra = 0;
|
||||||
for (i = 2 + (tp[0] != CSI);
|
for (i = 2 + (tp[0] != CSI); i < len
|
||||||
i < len && (VIM_ISDIGIT(tp[i])
|
&& !(tp[i] >= '{' && tp[i] <= '~')
|
||||||
|| tp[i] == ';' || tp[i] == '.'); ++i)
|
&& !ASCII_ISALPHA(tp[i]); ++i)
|
||||||
if (tp[i] == ';' && ++j == 1)
|
if (tp[i] == ';' && ++j == 1)
|
||||||
extra = atoi((char *)tp + i + 1);
|
extra = atoi((char *)tp + i + 1);
|
||||||
if (i == len)
|
if (i == len)
|
||||||
|
@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
266,
|
||||||
/**/
|
/**/
|
||||||
265,
|
265,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user