about summary refs log tree commit diff stats
path: root/src/local/container.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/local/container.nim')
-rw-r--r--src/local/container.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/local/container.nim b/src/local/container.nim
index 2acd7d8a..3772b0b0 100644
--- a/src/local/container.nim
+++ b/src/local/container.nim
@@ -1550,6 +1550,10 @@ proc windowChange*(container: Container; attrs: WindowAttributes) =
     container.width = attrs.width
     container.height = attrs.height - 1
     if container.iface != nil:
+      var attrs = attrs
+      # subtract status line height
+      attrs.height -= 1
+      attrs.height_px -= attrs.ppl
       container.iface.windowChange(attrs).then(proc() =
         container.needslines = true
       )