diff options
author | bptato <nincsnevem662@gmail.com> | 2022-11-28 23:39:41 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-11-28 23:39:41 +0100 |
commit | 6d6c589faaee1b76cb346500d06ff310791dfe1f (patch) | |
tree | 8ffba633ba3720055e531668851fce739575b8ce /src/display | |
parent | 150de039da9f98cdb665c8b0e88526ab23a35d34 (diff) | |
download | chawan-6d6c589faaee1b76cb346500d06ff310791dfe1f.tar.gz |
Fix container insertion
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/pager.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/pager.nim b/src/display/pager.nim index 6d684b26..849dbcca 100644 --- a/src/display/pager.nim +++ b/src/display/pager.nim @@ -299,7 +299,7 @@ proc registerContainer*(pager: Pager, container: Container) = proc addContainer*(pager: Pager, container: Container) = container.parent = pager.container if pager.container != nil: - pager.container.children.add(container) + pager.container.children.insert(container, 0) pager.registerContainer(container) pager.setContainer(container) |