summaryrefslogtreecommitdiff
path: root/src/window.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-01-26 19:41:10 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-01-26 19:41:10 +0000
commitb697bf1795059800db670452e809df70da30bf75 (patch)
tree5ac5616396f2ac9e587ac8f25c68543ff902100b /src/window.hh
parent92cb3a035fb210b8c8da9a7434369741421a18a8 (diff)
Release display buffers when a window is added to free list
Diffstat (limited to 'src/window.hh')
-rw-r--r--src/window.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window.hh b/src/window.hh
index 978fb374..aaeb34a6 100644
--- a/src/window.hh
+++ b/src/window.hh
@@ -42,6 +42,8 @@ public:
ByteCoord offset_coord(ByteCoord coord, CharCount offset);
ByteCoordAndTarget offset_coord(ByteCoordAndTarget coord, LineCount offset);
+
+ void clear_display_buffer() { m_display_buffer = DisplayBuffer{}; }
private:
Window(const Window&) = delete;