forked from aniani/vim
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 #4494)
This commit is contained in:
@@ -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 == '/'])))
|
||||
{
|
||||
|
Reference in New Issue
Block a user