diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-02 02:08:04 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-02 02:09:07 +0100 |
commit | 6e420cc768e86ae15215e3600a7c66b54f4b42ff (patch) | |
tree | 190d768d01f3b4fc10a6f09113c964e306e99b5e /src/server | |
parent | b7be2657e0743b8880c453783901e90cb5f42861 (diff) | |
download | chawan-6e420cc768e86ae15215e3600a7c66b54f4b42ff.tar.gz |
buffer: do not incrementally display in headless mode
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/buffer.nim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim index c0efeb65..dced572f 100644 --- a/src/server/buffer.nim +++ b/src/server/buffer.nim @@ -1224,9 +1224,10 @@ proc onload(buffer: Buffer) = break # incremental rendering: only if we cannot read the entire stream in one # pass - #TODO this could be improved - buffer.do_reshape() - buffer.resolveTask(bcLoad, -2) + if not buffer.config.isdump: + # only makes sense when not in dump mode + buffer.do_reshape() + buffer.resolveTask(bcLoad, -2) proc getTitle*(buffer: Buffer): string {.proxy.} = if buffer.document != nil: |