preview.nvim/lua
Barrett Ruth bc22350692
fix(init): guard against unnamed buffer in public API
Problem: calling compile/toggle/clean/open on an unsaved scratch
buffer passed an empty string as ctx.file, producing nonsensical
output paths like ".pdf" and silently passing empty strings to
compiler binaries.

Solution: add an early return with a WARN notification in compile,
toggle, clean, and open when the buffer has no file name.
2026-03-04 13:49:37 -05:00
..
preview fix(init): guard against unnamed buffer in public API 2026-03-04 13:49:37 -05:00