summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-02-24 09:38:46 +0330
committerAndreas Kling <kling@serenityos.org>2021-02-24 12:19:20 +0100
commitdd87b14f52267f36dcad9ce3ddde4b622ea607ce (patch)
tree7d03c18571e0796f0aac6993cb86726920fb2d3e
parent21cbcdd7da3c7348b2cb518a43922003f55d4c9f (diff)
downloadserenity-dd87b14f52267f36dcad9ce3ddde4b622ea607ce.zip
LibLine: Update the drawn cursor value when updating lazily
-rw-r--r--Userland/Libraries/LibLine/Editor.cpp1
1 files changed, 1 insertions, 0 deletions
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.