branch: elpa/typst-ts-mode
commit 439deb4b07e926c69950a7b3ed916315356a50dd
Author: Ziqi Yang <mr.ziqiy...@gmail.com>
Commit: Ziqi Yang <mr.ziqiy...@gmail.com>

    fix(preview): open non-english character file name
---
 typst-ts-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/typst-ts-mode.el b/typst-ts-mode.el
index 63d231cbf9..6ec45c9d2f 100644
--- a/typst-ts-mode.el
+++ b/typst-ts-mode.el
@@ -562,7 +562,8 @@ buffer before compilation."
   "Open the result compile file.
 FILE: file path for the result compile file."
   (interactive (list (concat (file-name-base buffer-file-name) ".pdf")))
-  (browse-url-of-file file))
+  ;; don't use `browse-url-of-file', which cannot open non-english documents
+  (browse-url file))
 
 (defun typst-ts-mode-compile-and-preview--compilation-finish-function 
(cur-buffer)
   "For `typst-ts-mode-compile-and-preview' and `compilation-finish-functions'.

Reply via email to