MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / CopyLineFromHistory

Method CopyLineFromHistory

PanzerChasm/console.cpp:255–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void Console::CopyLineFromHistory()
256{
257 PC_ASSERT( history_size_ > 0u );
258
259 std::strncpy(
260 input_line_,
261 history_[ ( history_size_ - current_history_line_ ) % c_max_history ].c_str(),
262 sizeof(input_line_) );
263
264 input_cursor_pos_= std::strlen( input_line_ );
265}
266
267} // namespace PanzerChasm

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected