diff options
author | bptato <nincsnevem662@gmail.com> | 2023-05-11 18:13:38 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-05-11 18:13:38 +0200 |
commit | 34b90a0b40fbb624655a2ff8624e89101d71299b (patch) | |
tree | 372a790b769ce968afd2035b96de1679a65116e6 /src/buffer/buffer.nim | |
parent | 87f9bd656b2a8a8d4ebd029ba6a78f1dc93558eb (diff) | |
download | chawan-34b90a0b40fbb624655a2ff8624e89101d71299b.tar.gz |
Fix some fetch crashes
Now it should work for very basic use-cases
Diffstat (limited to 'src/buffer/buffer.nim')
-rw-r--r-- | src/buffer/buffer.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer/buffer.nim b/src/buffer/buffer.nim index 2f3c5d76..a824deee 100644 --- a/src/buffer/buffer.nim +++ b/src/buffer/buffer.nim @@ -1190,6 +1190,7 @@ proc launchBuffer*(config: BufferConfig, source: BufferSource, buffer.readbufsize = BufferSize buffer.selector = newSelector[int]() loader.registerFun = proc(fd: int) = buffer.selector.registerHandle(fd, {Read}, 0) + loader.unregisterFun = proc(fd: int) = buffer.selector.unregister(fd) buffer.srenderer = newStreamRenderer(buffer.sstream) if buffer.config.scripting: buffer.window = newWindow(buffer.config.scripting, some(buffer.loader)) |