This commit is contained in:
Kovid Goyal 2017-12-12 18:38:52 +05:30
parent dbf8eb773c
commit 346a9f68b1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -57,6 +57,9 @@ cursor_from_sgr(Cursor *self, unsigned int *params, unsigned int count) {
break; \
case 2: \
if (i < count - 2) { \
/* Ignore the first parameter in a four parameter RGB */ \
/* sequence (unused color space id), see https://github.com/kovidgoyal/kitty/issues/227 */ \
if (i < count - 3) i++; \
r = params[i++] & 0xFF; \
g = params[i++] & 0xFF; \
b = params[i++] & 0xFF; \