Skip to content

Commit 19b38e0

Browse files
committed
Fix markdown image handlers
1 parent 20a8d55 commit 19b38e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eca-chat.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,6 +1807,8 @@ Call ORIG-FUN with ARGS if not media."
18071807

18081808
;; Paste image from clipboard support
18091809
(when (fboundp 'yank-media-handler)
1810+
;; reset current handlers inherit from markdown
1811+
(setq-local yank-media--registered-handlers nil)
18101812
(yank-media-handler "image/png" #'eca-chat--yank-image-handler)
18111813
(yank-media-handler "image/jpeg" #'eca-chat--yank-image-handler)
18121814
(yank-media-handler "image/jpg" #'eca-chat--yank-image-handler)

0 commit comments

Comments
 (0)