From 22f3881cadda565f00c3054f79ba06040e23256e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 20 Sep 2015 17:02:37 +0100 Subject: [PATCH] Fix prompt history handling when pressing the down key --- src/input_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input_handler.cc b/src/input_handler.cc index 04789f73..d5d44378 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -698,7 +698,7 @@ public: // search for the next history entry matching typed prefix ++m_history_it; 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; if (m_history_it != history.end())