mirror of
https://github.com/TomHarte/CLK.git
synced 2025-07-16 00:24:11 +00:00
Ensures new text is appended to any existing buffer.
TODO: move this into add_typer?
This commit is contained in:
@@ -645,7 +645,11 @@ class ConcreteMachine:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void type_string(const std::string &string) final {
|
void type_string(const std::string &string) final {
|
||||||
Utility::TypeRecipient::add_typer(string, std::make_unique<CharacterMapper>());
|
if(typer_) {
|
||||||
|
typer_->append(string);
|
||||||
|
} else {
|
||||||
|
Utility::TypeRecipient::add_typer(string, std::make_unique<CharacterMapper>());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void tape_did_change_input(Storage::Tape::BinaryTapePlayer *tape) final {
|
void tape_did_change_input(Storage::Tape::BinaryTapePlayer *tape) final {
|
||||||
|
Reference in New Issue
Block a user