mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibLine: Update the drawn cursor value when updating lazily
This commit is contained in:
parent
21cbcdd7da
commit
dd87b14f52
Notes:
sideshowbarker
2024-07-18 21:57:59 +09:00
Author: https://github.com/alimpfard
Commit: dd87b14f52
Pull-request: https://github.com/SerenityOS/serenity/pull/5492
Issue: https://github.com/SerenityOS/serenity/issues/5465
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue