branch: elpa/typst-ts-mode commit 1367003e2ad55a2f6f9e43178584683028ab56e9 Author: meowking <mr.meowk...@tutamail.com> Commit: meowking <mr.meowk...@tutamail.com>
fix: typst-ts-preview invalid argument error --- typst-ts-compile.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/typst-ts-compile.el b/typst-ts-compile.el index 59e6ad0b97..72173db15e 100644 --- a/typst-ts-compile.el +++ b/typst-ts-compile.el @@ -123,9 +123,7 @@ Assuming the compile output file name is in default style." "Preview the typst document output. If BUFFER is passed, preview its output, otherwise use current buffer." (interactive) - (unless buffer (setq buffer #'current-buffer)) - (browse-url (typst-ts-compile-get-result-pdf-filename #'current-buffer)) - ) + (browse-url (typst-ts-compile-get-result-pdf-filename buffer))) (defvar typst-ts-compilation-mode-error (cons (rx bol "error:" (+ not-newline) "\n" (+ blank) "┌─ "