Fix prompt history handling when pressing the down key

This commit is contained in:
Maxime Coste 2015-09-20 17:02:37 +01:00
parent 01152d7cd9
commit 22f3881cad

View File

@ -698,7 +698,7 @@ public:
// search for the next history entry matching typed prefix // search for the next history entry matching typed prefix
++m_history_it; ++m_history_it;
while (m_history_it != history.end() and while (m_history_it != history.end() and
prefix_match(*m_history_it, m_prefix)) not prefix_match(*m_history_it, m_prefix))
++m_history_it; ++m_history_it;
if (m_history_it != history.end()) if (m_history_it != history.end())