From 977aa3968c8a4c428ad4f569c37406b7ebf25512 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Thu, 30 Apr 2020 14:53:49 +0430 Subject: [PATCH] LibLine: Reset inline_search_cursor along with cursor This fixes the issue where the editor would only scroll up one command and then 'search' for it --- Libraries/LibLine/Editor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/LibLine/Editor.h b/Libraries/LibLine/Editor.h index ee2911b57a..90dc5aef79 100644 --- a/Libraries/LibLine/Editor.h +++ b/Libraries/LibLine/Editor.h @@ -219,6 +219,7 @@ private: m_old_prompt_length = m_cached_prompt_length; m_refresh_needed = true; m_cursor = 0; + m_inline_search_cursor = 0; } void refresh_display();