We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19b38e0 commit 8baf6cbCopy full SHA for 8baf6cb
eca-chat.el
@@ -1722,9 +1722,8 @@ DATA is the binary image data as a string."
1722
(output-path (make-temp-file "eca-screenshot-" nil (concat "." extension))))
1723
(condition-case err
1724
(progn
1725
- (with-temp-file output-path
1726
- (set-buffer-multibyte nil)
1727
- (insert data))
+ (let ((coding-system-for-write 'no-conversion))
+ (write-region data nil output-path nil 'silent))
1728
(when (f-exists? output-path)
1729
(eca-chat--with-current-buffer chat-buffer
1730
(let ((context (list :type "file" :path output-path))
0 commit comments