This commit is contained in:
leuven65 2022-10-24 10:31:24 +02:00 committed by GitHub
commit f95d7f0681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -491,6 +491,9 @@ to choose where to display it."
(buf (get-buffer-create plantuml-preview-buffer))
(coding-system-for-read (and imagep 'binary))
(coding-system-for-write (and imagep 'binary)))
(when imagep
(with-current-buffer buf
(set-buffer-file-coding-system 'no-conversion)))
(plantuml-exec-mode-preview-string prefix (plantuml-get-exec-mode) string buf)))
(defun plantuml-preview-buffer (prefix)