mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-09 13:45:26 +02:00
Fix #227
This commit is contained in:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user