diff options
-rw-r--r-- | src/display/winattrs.nim | 2 | ||||
-rw-r--r-- | src/local/container.nim | 5 | ||||
-rw-r--r-- | src/local/pager.nim | 5 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/display/winattrs.nim b/src/display/winattrs.nim index 06666263..1fe07080 100644 --- a/src/display/winattrs.nim +++ b/src/display/winattrs.nim @@ -54,5 +54,5 @@ proc getWindowAttributes*(tty: File): WindowAttributes = ppc: ppc, ppl: ppl, width_px: ppc * width, - height_px: ppl * width + height_px: ppl * height ) diff --git a/src/local/container.nim b/src/local/container.nim index 69bad5be..f57690ce 100644 --- a/src/local/container.nim +++ b/src/local/container.nim @@ -134,9 +134,8 @@ jsDestructor(Highlight) jsDestructor(Container) proc newBuffer*(forkserver: ForkServer, config: BufferConfig, - source: BufferSource, title = "", redirectdepth = 0, - canreinterpret = true, fd = FileHandle(-1)): Container = - let attrs = getWindowAttributes(stdout) + source: BufferSource, attrs: WindowAttributes, title = "", + redirectdepth = 0, canreinterpret = true, fd = FileHandle(-1)): Container = let (process, loaderPid) = forkserver.forkBuffer(source, config, attrs) if fd != -1: loaderPid.passFd(source.request.url.host, fd) diff --git a/src/local/pager.nim b/src/local/pager.nim index eb6e531d..ac241d73 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -448,12 +448,13 @@ proc addContainer*(pager: Pager, container: Container) = pager.setContainer(container) proc newBuffer(pager: Pager, bufferConfig: BufferConfig, source: BufferSource, - title = "", redirectdepth = 0, canreinterpret = true, - fd = FileHandle(-1)): Container = + title = "", redirectdepth = 0, canreinterpret = true, fd = FileHandle(-1)): + Container = return newBuffer( pager.forkserver, bufferConfig, source, + pager.attrs, title, redirectdepth, canreinterpret, |