diff options
author | bptato <nincsnevem662@gmail.com> | 2022-11-25 17:06:29 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-11-25 17:06:29 +0100 |
commit | d205ef228866cad35891ca96cacae547c02fd4ae (patch) | |
tree | 396c025fd0f930382fd79d80b746b197de562848 /src/buffer | |
parent | aaacdc350547dd5a5d637f9a054888792781895a (diff) | |
download | chawan-d205ef228866cad35891ca96cacae547c02fd4ae.tar.gz |
Fix misc bugs
Diffstat (limited to 'src/buffer')
-rw-r--r-- | src/buffer/buffer.nim | 6 |
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()) |