diff --git a/src/term.c b/src/term.c index af7d27c694..6fa519b4f8 100644 --- a/src/term.c +++ b/src/term.c @@ -4551,10 +4551,11 @@ check_termcode( continue; /* no match */ else { - /* Skip over the digits, the final char must - * follow. */ + // Skip over the digits, the final char must + // follow. URXVT can use a negative value, thus + // also accept '-'. for (j = slen - 2; j < len && (isdigit(tp[j]) - || tp[j] == ';'); ++j) + || tp[j] == '-' || tp[j] == ';'); ++j) ; ++j; if (len < j) /* got a partial sequence */ diff --git a/src/version.c b/src/version.c index 96f64eb8d9..0e7f3f5d2d 100644 --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1246, /**/ 1245, /**/