about summary refs log tree commit diff stats
path: root/src/buffer
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-15 17:35:41 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-15 17:35:41 +0100
commit5be29f675fc27974ff256cb2094ccd0854e19b07 (patch)
treef7ff0acf57a2440b681fc5e90b4a74e0943e106c /src/buffer
parente86bcfd40f699b88c984c4f79adc8647796353ae (diff)
downloadchawan-5be29f675fc27974ff256cb2094ccd0854e19b07.tar.gz
Add discardTree, update docs
Diffstat (limited to 'src/buffer')
-rw-r--r--src/buffer/container.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer/container.nim b/src/buffer/container.nim
index 8084c068..7a3534be 100644
--- a/src/buffer/container.nim
+++ b/src/buffer/container.nim
@@ -63,6 +63,8 @@ type
     clear*: bool
 
   Container* = ref object
+    parent* {.jsget.}: Container
+    children* {.jsget.}: seq[Container]
     config*: BufferConfig
     iface*: BufferInterface
     attrs: WindowAttributes
@@ -72,11 +74,9 @@ type
     title*: string
     hovertext*: string
     source*: BufferSource
-    children*: seq[Container]
     pos: CursorPosition
     bpos: seq[CursorPosition]
     highlights: seq[Highlight]
-    parent*: Container
     process* {.jsget.}: Pid
     loadinfo*: string
     lines: SimpleFlexibleGrid