summaryrefslogtreecommitdiff
path: root/Libraries/LibLine/Editor.h
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-04-11 14:06:46 +0430
committerAndreas Kling <kling@serenityos.org>2020-04-11 14:29:25 +0200
commitf946d6ce7998044a3767dd350182de6ac993a896 (patch)
tree68aabaa76f4ccf53bb332e0312b74b862eb1e1f2 /Libraries/LibLine/Editor.h
parent173c65660af21534fd9e44ea55db1ae1bf321920 (diff)
downloadserenity-f946d6ce7998044a3767dd350182de6ac993a896.zip
LibLine: Properly handle window resize by not spamming DSRs
We have all the information necessary to find our new origin when a window size change occurs.
Diffstat (limited to 'Libraries/LibLine/Editor.h')
-rw-r--r--Libraries/LibLine/Editor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibLine/Editor.h b/Libraries/LibLine/Editor.h
index b5765b0137..6a6c4a000c 100644
--- a/Libraries/LibLine/Editor.h
+++ b/Libraries/LibLine/Editor.h
@@ -168,6 +168,7 @@ private:
m_origin_x = position[0];
m_origin_y = position[1];
}
+ void recalculate_origin();
void reposition_cursor();
Vector<char, 1024> m_buffer;