| 846 | } |
| 847 | |
| 848 | void CGameConsole::CInstance::SetSearching(bool Searching) |
| 849 | { |
| 850 | m_Searching = Searching; |
| 851 | if(Searching) |
| 852 | { |
| 853 | m_Input.SetClipboardLineCallback(nullptr); // restore default behavior (replace newlines with spaces) |
| 854 | m_Input.Set(m_aCurrentSearchString); |
| 855 | m_Input.SelectAll(); |
| 856 | UpdateSearch(); |
| 857 | } |
| 858 | else |
| 859 | { |
| 860 | m_Input.SetClipboardLineCallback([this](const char *pLine) { ExecuteLine(pLine); }); |
| 861 | m_Input.Clear(); |
| 862 | } |
| 863 | } |
| 864 | |
| 865 | void CGameConsole::CInstance::ClearSearch() |
| 866 | { |
nothing calls this directly
no test coverage detected