diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-07 19:43:26 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-07 19:43:26 +0200 |
commit | 9451863c968aaa19a175aa6ff42c099b8fe7d908 (patch) | |
tree | b7f81953e2af76a15b0f2113ac09acfdbfd83efc | |
parent | 75b1c4ca74c7ca0ea1d746b7d5ebb105fd1a3400 (diff) | |
download | chawan-9451863c968aaa19a175aa6ff42c099b8fe7d908.tar.gz |
container: remove attrs
It was unused; we just set the width and height instead.
-rw-r--r-- | src/buffer/container.nim | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/buffer/container.nim b/src/buffer/container.nim index e5d2b700..44a1c99c 100644 --- a/src/buffer/container.nim +++ b/src/buffer/container.nim @@ -70,7 +70,6 @@ type children* {.jsget.}: seq[Container] config*: BufferConfig iface*: BufferInterface - attrs: WindowAttributes width* {.jsget.}: int height* {.jsget.}: int title*: string # used in status msg @@ -116,7 +115,6 @@ proc newBuffer*(forkserver: ForkServer, mainproc: Pid, config: BufferConfig, istream.sread(process) return Container( source: source, - attrs: attrs, width: attrs.width, height: attrs.height - 1, title: title, @@ -875,7 +873,6 @@ proc click(container: Container) {.jsfunc.} = .then(proc(res: ClickResult) = container.onclick(res)) proc windowChange*(container: Container, attrs: WindowAttributes) = - container.attrs = attrs if attrs.width != container.width or attrs.height - 1 != container.height: container.width = attrs.width container.height = attrs.height - 1 |