From 9f5d731d8d6b0240d54e198a42b9646ace5562ad Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 25 Sep 2017 16:04:26 +0530 Subject: [PATCH] ... --- kitty/parser.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kitty/parser.c b/kitty/parser.c index 3ad43e212..c5d7bd3ce 100644 --- a/kitty/parser.c +++ b/kitty/parser.c @@ -554,7 +554,7 @@ parse_graphics_code(Screen *screen, PyObject UNUSED *dump_callback) { }; enum KEYS key = 'a'; static GraphicsCommand g; - unsigned int i, code, ch; + unsigned int i, code; bool is_negative; memset(&g, 0, sizeof(g)); static uint8_t payload[4096]; @@ -630,8 +630,7 @@ parse_graphics_code(Screen *screen, PyObject UNUSED *dump_callback) { #undef SET_ATTR #undef READ_UINT case AFTER_VALUE: - ch = screen->parser_buf[pos++]; - switch (ch) { + switch (screen->parser_buf[pos++]) { case ',': state = KEY; break;