preview.nvim/lua
Barrett Ruth 4b1f95064f
fix(compiler): guard active entry before clearing in process callback
Problem: when M.compile() is called while a previous process is still
running, the old process's vim.schedule_wrap callback unconditionally
sets active[bufnr] = nil, wiping the new process from the tracking
table. status() incorrectly returns idle and stop() becomes a no-op
against the still-running process.

Solution: capture obj as an upvalue in each callback and only clear
active[bufnr] if it still points to the same process object.
2026-03-03 17:49:28 -05:00
..
preview fix(compiler): guard active entry before clearing in process callback 2026-03-03 17:49:28 -05:00