Fix handling of empty SGR code

Was broken by refactoring to support colons in SGR codes
This commit is contained in:
Kovid Goyal
2017-11-05 10:06:33 +05:30
parent c0114d5e4e
commit 3cb74a25ba
2 changed files with 5 additions and 0 deletions

View File

@@ -482,6 +482,10 @@ parse_sgr(Screen *screen, uint32_t *buf, unsigned int num, unsigned int *params,
}
}
switch(state) {
case START:
params[num_params++] = 0;
SEND_SGR;
break;
case COLOR1:
case COLOR3:
case NORMAL: