From d4446d1525ba4286775aa1c267afa9f5633cca73 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 5 Sep 2012 00:52:09 +0200 Subject: [PATCH] Client: fix history search --- src/client.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.cc b/src/client.cc index 0aab50fc..1ed9299c 100644 --- a/src/client.cc +++ b/src/client.cc @@ -168,11 +168,11 @@ public: if (it->substr(0, prefix_length) == m_saved_result) { m_history_it = it; + m_result = *it; + m_cursor_pos = m_result.length(); break; } } while (it != history.begin()); - m_result = *m_history_it; - m_cursor_pos = m_result.length(); } } else if (key == Key(Key::Modifiers::Control, 'n') or // next