diff --git a/src/term.c b/src/term.c index 8d6a98e5c0..afa622e45f 100644 --- a/src/term.c +++ b/src/term.c @@ -4990,7 +4990,7 @@ check_termcode( int is_4digit = i - j >= 21 && tp[j + 11] == '/' && tp[j + 16] == '/'; - if (i - j >= 14 && STRNCMP(tp + j + 3, "rgb:", 4) == 0 + if (i - j >= 15 && STRNCMP(tp + j + 3, "rgb:", 4) == 0 && (is_4digit || (tp[j + 9] == '/' && tp[i + 12 == '/']))) { diff --git a/src/version.c b/src/version.c index 72f4009ffd..2fd64c3f41 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 */ +/**/ + 1481, /**/ 1480, /**/