From 6e4bd4f5052a2c20a2c1adde7e4f074a08a3cda8 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 29 Feb 2020 19:58:56 -0500 Subject: [PATCH] Ensures new text is appended to any existing buffer. TODO: move this into add_typer? --- Machines/Commodore/Vic-20/Vic20.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Machines/Commodore/Vic-20/Vic20.cpp b/Machines/Commodore/Vic-20/Vic20.cpp index 2440c1fdb..072d8612a 100644 --- a/Machines/Commodore/Vic-20/Vic20.cpp +++ b/Machines/Commodore/Vic-20/Vic20.cpp @@ -645,7 +645,11 @@ class ConcreteMachine: } void type_string(const std::string &string) final { - Utility::TypeRecipient::add_typer(string, std::make_unique()); + if(typer_) { + typer_->append(string); + } else { + Utility::TypeRecipient::add_typer(string, std::make_unique()); + } } void tape_did_change_input(Storage::Tape::BinaryTapePlayer *tape) final {