From 80b060be33ce7eea7a4bab18dbfe652cf6d36c0b Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 23 Aug 2024 16:14:04 +0200 Subject: winattrs: un-snakeify --- src/local/container.nim | 2 +- src/local/pager.nim | 2 +- src/local/term.nim | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/local') diff --git a/src/local/container.nim b/src/local/container.nim index a21af3af..046e2bc8 100644 --- a/src/local/container.nim +++ b/src/local/container.nim @@ -1893,7 +1893,7 @@ proc windowChange*(container: Container; attrs: WindowAttributes) = var attrs = attrs # subtract status line height attrs.height -= 1 - attrs.height_px -= attrs.ppl + attrs.heightPx -= attrs.ppl container.iface.windowChange(attrs).then(proc() = container.needslines = true ) diff --git a/src/local/pager.nim b/src/local/pager.nim index 43f0d8c4..7c2dde27 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -1942,7 +1942,7 @@ proc connected(pager: Pager; container: Container; response: Response) = var attrs = pager.attrs # subtract status line height attrs.height -= 1 - attrs.height_px -= attrs.ppl + attrs.heightPx -= attrs.ppl container.process = pager.forkserver.forkBuffer( container.config, container.url, diff --git a/src/local/term.nim b/src/local/term.nim index 82a892dd..71d32343 100644 --- a/src/local/term.nim +++ b/src/local/term.nim @@ -593,13 +593,13 @@ proc applyConfigDimensions(term: Terminal) = term.attrs.ppc = int(term.config.display.pixels_per_column) if term.attrs.ppl == 0 or term.config.display.force_pixels_per_line: term.attrs.ppl = int(term.config.display.pixels_per_line) - term.attrs.width_px = term.attrs.ppc * term.attrs.width - term.attrs.height_px = term.attrs.ppl * term.attrs.height + term.attrs.widthPx = term.attrs.ppc * term.attrs.width + term.attrs.heightPx = term.attrs.ppl * term.attrs.height if term.imageMode == imSixel: if term.sixelMaxWidth == 0: - term.sixelMaxWidth = term.attrs.width_px + term.sixelMaxWidth = term.attrs.widthPx if term.sixelMaxHeight == 0: - term.sixelMaxHeight = term.attrs.height_px + term.sixelMaxHeight = term.attrs.heightPx proc applyConfig(term: Terminal) = # colors, formatting -- cgit 1.4.1-2-gfad0