patch 7.4.1974

Problem:    GUI has a problem with some termcodes.
Solution:   Handle negative numbers. (Kazunobu Kuriyama)
This commit is contained in:
Bram Moolenaar
2016-07-01 15:48:05 +02:00
parent 4c5717ed8a
commit 4a6c670b84
2 changed files with 3 additions and 1 deletions

View File

@ -1773,7 +1773,7 @@ gui_write(
if (s[0] == ESC && s[1] == '|')
{
p = s + 2;
if (VIM_ISDIGIT(*p))
if (VIM_ISDIGIT(*p) || (*p == '-' && VIM_ISDIGIT(*(p + 1))))
{
arg1 = getdigits(&p);
if (p > s + len)

View File

@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1974,
/**/
1973,
/**/