about summary refs log tree commit diff stats
path: root/src/buffer
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-25 17:06:29 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-25 17:06:29 +0100
commitd205ef228866cad35891ca96cacae547c02fd4ae (patch)
tree396c025fd0f930382fd79d80b746b197de562848 /src/buffer
parentaaacdc350547dd5a5d637f9a054888792781895a (diff)
downloadchawan-d205ef228866cad35891ca96cacae547c02fd4ae.tar.gz
Fix misc bugs
Diffstat (limited to 'src/buffer')
-rw-r--r--src/buffer/buffer.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/buffer/buffer.nim b/src/buffer/buffer.nim
index 2acf0e6c..b6acf2b0 100644
--- a/src/buffer/buffer.nim
+++ b/src/buffer/buffer.nim
@@ -873,9 +873,11 @@ proc launchBuffer*(config: BufferConfig, source: BufferSource,
     config: config,
     loader: loader,
     bsource: source,
-    sstream: newStringStream()
+    sstream: newStringStream(),
+    viewport: Viewport(window: attrs),
+    width: attrs.width,
+    height: attrs.height - 1
   )
-  buffer.windowChange()
   buffer.selector = newSelector[int]()
   let sstream = connectSocketStream(mainproc, false)
   sstream.swrite(getpid())