mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.1.1246: cannot handle negative mouse coordinate from urxvt
Problem: Cannot handle negative mouse coordinate from urxvt. Solution: Accept '-' where a digit is expected. (Vincent Vinel, closes #4326)
This commit is contained in:
@@ -4551,10 +4551,11 @@ check_termcode(
|
|||||||
continue; /* no match */
|
continue; /* no match */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Skip over the digits, the final char must
|
// Skip over the digits, the final char must
|
||||||
* follow. */
|
// follow. URXVT can use a negative value, thus
|
||||||
|
// also accept '-'.
|
||||||
for (j = slen - 2; j < len && (isdigit(tp[j])
|
for (j = slen - 2; j < len && (isdigit(tp[j])
|
||||||
|| tp[j] == ';'); ++j)
|
|| tp[j] == '-' || tp[j] == ';'); ++j)
|
||||||
;
|
;
|
||||||
++j;
|
++j;
|
||||||
if (len < j) /* got a partial sequence */
|
if (len < j) /* got a partial sequence */
|
||||||
|
@@ -767,6 +767,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1246,
|
||||||
/**/
|
/**/
|
||||||
1245,
|
1245,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user