summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibLine/Editor.h
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-02-21 04:03:43 +0330
committerAndreas Kling <kling@serenityos.org>2021-02-21 09:01:00 +0100
commit6472e5239c653bebe3efea79c803aa01b925cccb (patch)
tree5bab283cd6bc61d166ae61fe75f3fea233184573 /Userland/Libraries/LibLine/Editor.h
parent84b2d4c4758e52b9509c6fe7ea317b23d1ec86d2 (diff)
downloadserenity-6472e5239c653bebe3efea79c803aa01b925cccb.zip
LibLine: Update the lazy refresh data and flags in some more places
These were forgotten in the last LibLine commit, any changes to m_buffer not going through insert() and remove_at_index() should also be updating these. Fixes #5440.
Diffstat (limited to 'Userland/Libraries/LibLine/Editor.h')
-rw-r--r--Userland/Libraries/LibLine/Editor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibLine/Editor.h b/Userland/Libraries/LibLine/Editor.h
index 32b1471776..6523d403be 100644
--- a/Userland/Libraries/LibLine/Editor.h
+++ b/Userland/Libraries/LibLine/Editor.h
@@ -319,6 +319,9 @@ private:
m_refresh_needed = true;
m_input_error.clear();
m_returned_line = String::empty();
+ m_chars_touched_in_the_middle = 0;
+ m_drawn_end_of_line_offset = 0;
+ m_drawn_spans = {};
}
void refresh_display();