# HG changeset patch # User Bram Moolenaar # Date 1559827806 -7200 # Node ID 43c942a1938c595b41c25168c95e115e37bdc4f1 # Parent 3acf77ec29e4b351cef0be001b21f1baca0a7e00 patch 8.1.1481: length for two-digit rgb termresponse is off by one commit https://github.com/vim/vim/commit/12e71eb8a89bdfe1def5854fd7478e8899801b44 Author: Bram Moolenaar Date: Thu Jun 6 15:19:31 2019 +0200 patch 8.1.1481: length for two-digit rgb termresponse is off by one Problem: Length for two-digit rgb termresponse is off by one. Solution: Adjust the length. (closes https://github.com/vim/vim/issues/4494) diff --git a/src/term.c b/src/term.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -768,6 +768,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1481, +/**/ 1480, /**/ 1479,