Skip to content

Commit

Permalink
Fix not automatic update issue
Browse files Browse the repository at this point in the history
If `eww-auto-rename-buffer` is non-nil, then new buffer is
created every buffer saving. So previous buffer is killed before
re-rendering to create the same name buffer
  • Loading branch information
syohex committed Dec 9, 2022
1 parent b4bff80 commit eb3f3be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -7541,6 +7541,9 @@ This is the inverse of `markdown-live-preview-buffer'.")
(defun markdown-live-preview-window-eww (file)
"Preview FILE with eww.
To be used with `markdown-live-preview-window-function'."
(when (and (bound-and-true-p eww-auto-rename-buffer)
markdown-live-preview-buffer)
(kill-buffer markdown-live-preview-buffer))
(eww-open-file file)
;; #737 if `eww-auto-rename-buffer' is non-nil, the buffer name is not "*eww*"
;; Try to find the buffer whose name ends with "eww*"
Expand Down

0 comments on commit eb3f3be

Please sign in to comment.