# HG changeset patch # User Christian Brabandt # Date 1467381606 -7200 # Node ID 60db35a2082359b9b4a2d19585b25780382921e0 # Parent f70535d8eaa242ea5648d18d78f37d72414843db commit https://github.com/vim/vim/commit/4a6c670b844a3ef9aec865a8216eaf363bab8721 Author: Bram Moolenaar Date: Fri Jul 1 15:48:05 2016 +0200 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1974, +/**/ 1973, /**/ 1972,