Skip to content

Commit 3b6185f

Browse files
committed
fix #256: prevent diff-hl-inline-popup-hide from being called twice
1 parent f86322b commit 3b6185f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

diff-hl-show-hunk.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ Returns a list with the buffer and the line number of the clicked line."
232232
(defun diff-hl-show-hunk-inline-popup (buffer &optional _ignored-line)
233233
"Implementation to show the hunk in a inline popup.
234234
BUFFER is a buffer with the hunk."
235-
(diff-hl-inline-popup-hide)
235+
;; prevent diff-hl-inline-popup-hide from being called twice
236+
(let ((diff-hl-inline-popup--close-hook nil))
237+
(diff-hl-inline-popup-hide))
236238
(setq diff-hl-show-hunk--hide-function #'diff-hl-inline-popup-hide)
237239
(let* ((lines (split-string (with-current-buffer buffer (buffer-string)) "[\n\r]+" ))
238240
(smart-lines diff-hl-show-hunk-inline-popup-smart-lines)

0 commit comments

Comments
 (0)