MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ApplySuggestion

Method ApplySuggestion

src/console_gui.cpp:103–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 }
102
103 void ApplySuggestion(std::string_view prefix, std::string_view suggestion) override
104 {
105 this->textbuf->Assign(fmt::format("{}{} ", prefix, suggestion));
106 }
107};
108
109/* ** main console cmd buffer ** */

Callers 1

AutoCompleteMethod · 0.45

Calls 2

formatFunction · 0.50
AssignMethod · 0.45

Tested by

no test coverage detected