Skip to content

Commit

Permalink
Merge pull request #1072 from fuyu0425/master
Browse files Browse the repository at this point in the history
only re-insert doc when doc change
  • Loading branch information
manateelazycat authored Oct 12, 2024
2 parents db75a30 + 2ace7bd commit 98be27b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions acm/acm.el
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,9 @@ The key of candidate will change between two LSP results."
;; Insert documentation and turn on wrap line.
(with-current-buffer (get-buffer-create acm-doc-buffer)
(read-only-mode -1)
(erase-buffer)
(insert doc)
(when (not (string-equal doc acm-markdown-render-doc))
(erase-buffer)
(insert doc))
(visual-line-mode 1))

;; Only render markdown styling when idle 200ms, because markdown render is expensive.
Expand Down

0 comments on commit 98be27b

Please sign in to comment.