Fix repainting of the client prompt after fuzzy search

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-11-22 15:59:03 +01:00
parent 0479d8d9f5
commit 14d4980e26

View File

@ -420,6 +420,7 @@ ReplxxLineReader::ReplxxLineReader(
auto interactive_history_search = [this](char32_t code)
{
openInteractiveHistorySearch();
rx.invoke(Replxx::ACTION::CLEAR_SELF, code);
return rx.invoke(Replxx::ACTION::REPAINT, code);
};
rx.bind_key(Replxx::KEY::control('R'), interactive_history_search);