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



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

    parser: No need to clear for IGNORE sequence
    
    On IGNORE, 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 edb9b4e..7b6f1f3 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -594,11 +594,9 @@ static inline int parser_clear(struct vte_parser *parser, uint32_t raw)
 
 static int parser_ignore(struct vte_parser *parser, uint32_t raw)
 {
-        parser_clear(parser, raw);
         parser->seq.type = VTE_SEQ_IGNORE;
         parser->seq.command = VTE_CMD_NONE;
         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]