aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-01 19:26:32 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-01 19:57:54 +0200
commit2b10a9b7f61d58157f85c93e8e7b18b1e01e4b79 (patch)
treea6c544e5c0e49578d847985945448344540a9f7f /src/buffer
parentef136ac44db26074bf9528f17dee764f731ed4eb (diff)
downloadchawan-2b10a9b7f61d58157f85c93e8e7b18b1e01e4b79.tar.gz
use =destroy instead of finalizers
This should help with moving to ORC in the future. (Also, finalizers do not work very well in the first place.)
Diffstat (limited to 'src/buffer')
-rw-r--r--src/buffer/container.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer/container.nim b/src/buffer/container.nim
index a2bbaa3a..21b11af6 100644
--- a/src/buffer/container.nim
+++ b/src/buffer/container.nim
@@ -97,6 +97,8 @@ type
hasstart: bool
redirectdepth*: int
+jsDestructor(Container)
+
proc newBuffer*(dispatcher: Dispatcher, config: BufferConfig,
source: BufferSource, title = "", redirectdepth = 0): Container =
let attrs = getWindowAttributes(stdout)