File tree Expand file tree Collapse file tree 2 files changed +27
-17
lines changed
Expand file tree Collapse file tree 2 files changed +27
-17
lines changed Original file line number Diff line number Diff line change 486486 (timer.interval (config.get-in [:log :auto_flush_interval_ms]) M.flush))
487487
488488(fn M.append [lines opts]
489- (let [{: filetype } (client.current - client - module - name )
490- buffer (or (. M.state.buffers filetype ) [])]
491- (table . insert buffer [lines opts ])
492- (tset M.state.buffers filetype buffer ))
489+ (let [eager? (or (core.get opts :break?) (core.get opts :join-first?))]
490+ (when eager?
491+ (M.flush))
493492
494- (when (or (core.get opts :break?) (core.get opts :join-first?))
495- (M.flush )))
493+ (let [{: filetype} (client.current-client-module-name)
494+ buffer (or (. M.state.buffers filetype) [])]
495+
496+ (table.insert buffer [lines opts])
497+ (tset M.state.buffers filetype buffer))
498+
499+ (when eager?
500+ (M.flush))))
496501
497502(fn create-win [cmd]
498503 (set M.state.last-open-cmd cmd)
You can’t perform that action at this time.
0 commit comments