Mercurial > vim
comparison src/gui.c @ 9385:60db35a20823 v7.4.1974
commit https://github.com/vim/vim/commit/4a6c670b844a3ef9aec865a8216eaf363bab8721
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 01 Jul 2016 16:00:06 +0200 |
parents | 4981cd0802c7 |
children | f094d4085014 |
comparison
equal
deleted
inserted
replaced
9384:f70535d8eaa2 | 9385:60db35a20823 |
---|---|
1771 while (len) | 1771 while (len) |
1772 { | 1772 { |
1773 if (s[0] == ESC && s[1] == '|') | 1773 if (s[0] == ESC && s[1] == '|') |
1774 { | 1774 { |
1775 p = s + 2; | 1775 p = s + 2; |
1776 if (VIM_ISDIGIT(*p)) | 1776 if (VIM_ISDIGIT(*p) || (*p == '-' && VIM_ISDIGIT(*(p + 1)))) |
1777 { | 1777 { |
1778 arg1 = getdigits(&p); | 1778 arg1 = getdigits(&p); |
1779 if (p > s + len) | 1779 if (p > s + len) |
1780 break; | 1780 break; |
1781 if (*p == ';') | 1781 if (*p == ';') |