about summary refs log tree commit diff stats
path: root/src/display
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-28 23:39:41 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-28 23:39:41 +0100
commit6d6c589faaee1b76cb346500d06ff310791dfe1f (patch)
tree8ffba633ba3720055e531668851fce739575b8ce /src/display
parent150de039da9f98cdb665c8b0e88526ab23a35d34 (diff)
downloadchawan-6d6c589faaee1b76cb346500d06ff310791dfe1f.tar.gz
Fix container insertion
Diffstat (limited to 'src/display')
-rw-r--r--src/display/pager.nim2
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)