diff options
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c index 8d6a98e5c..afa622e45 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 == '/']))) { |