From dd87b14f52267f36dcad9ce3ddde4b622ea607ce Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Wed, 24 Feb 2021 09:38:46 +0330 Subject: [PATCH] LibLine: Update the drawn cursor value when updating lazily --- Userland/Libraries/LibLine/Editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibLine/Editor.cpp b/Userland/Libraries/LibLine/Editor.cpp index 4bb27d0ea2..3e0dac4665 100644 --- a/Userland/Libraries/LibLine/Editor.cpp +++ b/Userland/Libraries/LibLine/Editor.cpp @@ -1271,6 +1271,7 @@ void Editor::refresh_display() m_refresh_needed = false; m_cached_buffer_metrics = actual_rendered_string_metrics(buffer_view()); m_chars_touched_in_the_middle = 0; + m_drawn_cursor = m_cursor; m_drawn_end_of_line_offset = m_buffer.size(); // No need to reposition the cursor, the cursor is already where it needs to be.