aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs32
1 files changed, 15 insertions, 17 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b6d2658..9d7931f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -165,28 +165,26 @@ impl Parser {
match self.state {
State::DcsPassthrough => {
self.perform_action(performer, Action::Unhook, byte);
- maybe_action!(action, byte);
},
State::OscString => {
self.perform_action(performer, Action::OscEnd, byte);
- maybe_action!(action, byte);
},
- _ => {
- maybe_action!(action, byte);
-
- match state {
- State::CsiEntry | State::DcsEntry | State::Escape => {
- self.perform_action(performer, Action::Clear, byte);
- },
- State::DcsPassthrough => {
- self.perform_action(performer, Action::Hook, byte);
- },
- State::OscString => {
- self.perform_action(performer, Action::OscStart, byte);
- },
- _ => (),
- }
+ _ => (),
+ }
+
+ maybe_action!(action, byte);
+
+ match state {
+ State::CsiEntry | State::DcsEntry | State::Escape => {
+ self.perform_action(performer, Action::Clear, byte);
+ },
+ State::DcsPassthrough => {
+ self.perform_action(performer, Action::Hook, byte);
+ },
+ State::OscString => {
+ self.perform_action(performer, Action::OscStart, byte);
},
+ _ => (),
}
// Assume the new state