preview.nvim/lua
Barrett Ruth 08f0b037e0
fix(compiler): preserve viewer_open when viewer process exits
Problem: when `open` is a custom command like `sioyek --instance-name`,
the process exits immediately after delegating to the running instance.
The exit callback reset `viewer_open`, causing every recompile to reopen
the viewer and toggle to reopen instead of stopping.

Solution: stop clearing `viewer_open` in the `do_open` exit callback.
The flag now persists for the watch session and is only reset by
`stop_watching`.
2026-03-15 13:34:39 -04:00
..
preview fix(compiler): preserve viewer_open when viewer process exits 2026-03-15 13:34:39 -04:00