commit | 4a6c670b844a3ef9aec865a8216eaf363bab8721 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Jul 01 15:48:05 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Jul 01 15:48:05 2016 +0200 |
tree | 0a4d60f8efe9b765678c76ef614dc84c815d1220 | |
parent | 4c5717ed8a81f5ae9dfe4f38b17a61fc8421054b [diff] [blame] |
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 6e8a904..59acc13 100644 --- a/src/gui.c +++ b/src/gui.c
@@ -1773,7 +1773,7 @@ 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)