From 5fe2872904b78adf5cb252e8daac6d6eb901e966 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 15 Mar 2016 13:55:01 +0000 Subject: [PATCH] Reset line editor display pos when the text is reset --- src/input_handler.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input_handler.cc b/src/input_handler.cc index 257f51be0..0dbd5ddc7 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -441,6 +441,7 @@ public: { m_line = std::move(line); m_cursor_pos = m_line.char_length(); + m_display_pos = 0; } const String& line() const { return m_line; }