[vte] parser: Don't clear state when executing a control character



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

    parser: Don't clear state when executing a control character
    
    C0 controls can occur inside an ESC or CSI sequence, where
    they must be executed immediately but not abort the sequence,
    and therefore also not clear the parameters.

 src/parser.cc |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/parser.cc b/src/parser.cc
index 0f2d088..b727219 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -1037,7 +1037,6 @@ static int parser_print(struct vte_parser *parser, uint32_t raw)
 
 static int parser_execute(struct vte_parser *parser, uint32_t raw)
 {
-        parser_clear(parser);
         parser->seq.type = VTE_SEQ_CONTROL;
         parser->seq.command = VTE_CMD_GRAPHIC;
         parser->seq.terminator = raw;


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