| 253 | } |
| 254 | |
| 255 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected