We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0574c32 + c596e65 commit bdbdbbfCopy full SHA for bdbdbbf
1 file changed
diff-hl-show-hunk.el
@@ -232,7 +232,9 @@ Returns a list with the buffer and the line number of the clicked line."
232
(defun diff-hl-show-hunk-inline-popup (buffer &optional _ignored-line)
233
"Implementation to show the hunk in a inline popup.
234
BUFFER is a buffer with the hunk."
235
- (diff-hl-inline-popup-hide)
+ ;; 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))
238
(setq diff-hl-show-hunk--hide-function #'diff-hl-inline-popup-hide)
239
(let* ((lines (split-string (with-current-buffer buffer (buffer-string)) "[\n\r]+" ))
240
(smart-lines diff-hl-show-hunk-inline-popup-smart-lines)
0 commit comments