preview.nvim/spec
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
..
commands_spec.lua fix(commands): register VimLeavePre to call stop_all 2026-03-04 13:48:46 -05:00
compiler_spec.lua feat(compiler): add configurable error output modes (#14) 2026-03-03 14:57:44 -05:00
diagnostic_spec.lua feat: rename 2026-03-02 21:23:40 -05:00
helpers.lua feat: rename watch → toggle, auto-compile on start, built-in opener 2026-03-02 23:37:44 -05:00
init_spec.lua fix(init): guard against unnamed buffer in public API 2026-03-04 13:49:37 -05:00
minimal_init.lua ci: format 2026-03-01 17:22:59 -05:00
presets_spec.lua feat: unified reload field for live-preview (SSE + long-running watch) (#19) 2026-03-03 16:41:47 -05:00
reload_spec.lua feat: unified reload field for live-preview (SSE + long-running watch) (#19) 2026-03-03 16:41:47 -05:00