summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-01 15:48:05 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-01 15:48:05 +0200
commit4a6c670b844a3ef9aec865a8216eaf363bab8721 (patch)
tree0a4d60f8efe9b765678c76ef614dc84c815d1220
parent4c5717ed8a81f5ae9dfe4f38b17a61fc8421054b (diff)
patch 7.4.1974v7.4.1974
Problem: GUI has a problem with some termcodes. Solution: Handle negative numbers. (Kazunobu Kuriyama)
-rw-r--r--src/gui.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gui.c b/src/gui.c
index 6e8a9049e7..59acc13822 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 1e8e63565f..5ef04d0b23 100644
--- 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,