Fix a regression in 0.17 that broke displaying graphics over SSH

The new types GraphicsCommand can generate a command with only a payload
and no control keys, as the last command during chunked transfer.
Fix the parser to handle this. Fixes #2568
This commit is contained in:
Kovid Goyal
2020-04-19 08:13:33 +05:30
parent 98801b6fa6
commit 1ab4f7d2d0
3 changed files with 19 additions and 13 deletions

View File

@@ -137,6 +137,7 @@ static inline void
{parr}
{keys_enum}
enum KEYS key = '{initial_key}';
if (screen->parser_buf[pos] == ';') state = AFTER_VALUE;
while (pos < screen->parser_buf_pos) {{
switch(state) {{