[vte] parser: No need to clear for GRAPHIC sequence



commit f7d39f6d130a871b14eaea2ec42e29823346f5a3
Author: Christian Persch <chpe src gnome org>
Date:   Tue Mar 27 19:40:13 2018 +0200

    parser: No need to clear for GRAPHIC sequence
    
    On GRAPHIC, the only field allowed to access are the type,
    command, and final character; so there's no need to clear
    the other data.

 src/parser.cc |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/parser.cc b/src/parser.cc
index 7b6f1f3..29c6ba0 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -603,11 +603,9 @@ static int parser_ignore(struct vte_parser *parser, uint32_t raw)
 
 static int parser_print(struct vte_parser *parser, uint32_t raw)
 {
-        parser_clear(parser, raw);
         parser->seq.type = VTE_SEQ_GRAPHIC;
         parser->seq.command = VTE_CMD_GRAPHIC;
         parser->seq.terminator = raw;
-        parser->seq.charset = VTE_CHARSET_NONE;
 
         return parser->seq.type;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]