diff options
-rw-r--r-- | elisp/geiser-image.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/elisp/geiser-image.el b/elisp/geiser-image.el index f194e04..3769c4c 100644 --- a/elisp/geiser-image.el +++ b/elisp/geiser-image.el @@ -96,9 +96,9 @@ images in `geiser-image-cache-dir'." (begin (match-beginning 0)) (end (match-end 0))) (delete-region begin end) + (goto-char begin) (if (and inline-images-p (display-images-p)) - (put-image (create-image file) begin "[image]") - (goto-char begin) + (insert-image (create-image file) "[image]") (geiser-image--insert-button file) (when auto-p (geiser-image--display file))) (setq geiser-image-cache-dir (file-name-directory file)) |