diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-17 13:29:15 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-17 13:30:15 +0100 |
commit | 3fe649010975686e9072678e4a4aafef6e4241fc (patch) | |
tree | a9a5eeaf5338eaba60e658240599faf6b7121588 /src/display | |
parent | 4e264e9d75844382e81bd8315671ca7e2f7bade3 (diff) | |
download | chawan-3fe649010975686e9072678e4a4aafef6e4241fc.tar.gz |
winattrs: remove unnecessary call, fix height_px fallback
no need for every new buffer to query the window size
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/winattrs.nim | 2 |
1 files changed, 1 insertions, 1 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 ) |