More tests for the graphics control code parser

This commit is contained in:
Kovid Goyal
2017-09-25 21:35:41 +05:30
parent 8e64895c23
commit 3c89f80603
2 changed files with 14 additions and 2 deletions

View File

@@ -563,7 +563,7 @@ parse_graphics_code(Screen *screen, PyObject UNUSED *dump_callback) {
size_t sz;
const char *err;
while (pos < screen->parser_buf_pos - 1) {
while (pos < screen->parser_buf_pos) {
switch(state) {
case KEY: