From 3fe649010975686e9072678e4a4aafef6e4241fc Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 17 Feb 2024 13:29:15 +0100 Subject: winattrs: remove unnecessary call, fix height_px fallback no need for every new buffer to query the window size --- src/local/pager.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/local/pager.nim') 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, -- cgit 1.4.1-2-gfad0