]> granicus.if.org Git - vim/commitdiff
patch 7.4.1974 v7.4.1974
authorBram Moolenaar <Bram@vim.org>
Fri, 1 Jul 2016 13:48:05 +0000 (15:48 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 1 Jul 2016 13:48:05 +0000 (15:48 +0200)
Problem:    GUI has a problem with some termcodes.
Solution:   Handle negative numbers. (Kazunobu Kuriyama)

src/gui.c
src/version.c

index 6e8a9049e7124977b6bb3061dd1da9919c7dfb81..59acc13822e4b27860c0732568bc3e325bd68dbf 100644 (file)
--- 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)
index 1e8e63565f22eba09eaa1e077b50bc88fd273b95..5ef04d0b233868a24487dbe616e01b2a1750098a 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1974,
 /**/
     1973,
 /**/