From: Bram Moolenaar Date: Fri, 1 Jul 2016 13:48:05 +0000 (+0200) Subject: patch 7.4.1974 X-Git-Tag: v7.4.1974 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a6c670b844a3ef9aec865a8216eaf363bab8721;p=vim patch 7.4.1974 Problem: GUI has a problem with some termcodes. Solution: Handle negative numbers. (Kazunobu Kuriyama) --- diff --git a/src/gui.c b/src/gui.c index 6e8a9049e..59acc1382 100644 --- a/src/gui.c +++ b/src/gui.c @@ -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) diff --git a/src/version.c b/src/version.c index 1e8e63565..5ef04d0b2 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1974, /**/ 1973, /**/