From 4ecd093891bb3a1c11d8912380169de3a988f139 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 11 Aug 2017 11:35:14 -0400 Subject: [PATCH] Fixed test for termination of a key sequence; the previous error will have seen this reduce all multi-key sequences to just the one, and expand single-key sequences to "probably" two, posting an out-of-bounds code to the machine at completion. --- Machines/Typer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/Typer.cpp b/Machines/Typer.cpp index 7ff39395d..ff60c04b9 100644 --- a/Machines/Typer.cpp +++ b/Machines/Typer.cpp @@ -51,7 +51,7 @@ bool Typer::try_type_next_character() { if(!phase_) delegate_->clear_all_keys(); else { delegate_->set_key_state(sequence[phase_ - 1], true); - return sequence[phase_] == CharacterMapper::EndSequence; + return sequence[phase_] != CharacterMapper::EndSequence; } return true;