about summary refs log tree commit diff stats
path: root/src/buffer
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-22 23:57:50 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-22 23:57:50 +0100
commitee930b0f5a587768d340c4204cf1f2e9fb818c89 (patch)
treedda0aeddce19b4e28a4c341d308d0cd87652125b /src/buffer
parent1da72ab345a13ee61b1f06b30fdc6c57c97bf524 (diff)
downloadchawan-ee930b0f5a587768d340c4204cf1f2e9fb818c89.tar.gz
Table improvements
Diffstat (limited to 'src/buffer')
-rw-r--r--src/buffer/buffer.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer/buffer.nim b/src/buffer/buffer.nim
index b8e2d69f..685fa4db 100644
--- a/src/buffer/buffer.nim
+++ b/src/buffer/buffer.nim
@@ -285,6 +285,7 @@ proc gotoAnchor(buffer: Buffer) =
       inc i
 
 proc windowChange(buffer: Buffer) =
+  buffer.viewport = Viewport(window: buffer.attrs)
   buffer.width = buffer.attrs.width
   buffer.height = buffer.attrs.height - 1
   buffer.reshape = true