branch: externals/diff-hl
commit 0a378d035726fe66015fc740503be592bca8637c
Author: Dmitry Gutov <dmi...@gutov.dev>
Commit: Dmitry Gutov <dmi...@gutov.dev>

    diff-hl-show-hunk-posframe: Fix error on repeated next/previous iteration
---
 diff-hl-show-hunk-posframe.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diff-hl-show-hunk-posframe.el b/diff-hl-show-hunk-posframe.el
index 735fcd5e88..331c4bb3fe 100644
--- a/diff-hl-show-hunk-posframe.el
+++ b/diff-hl-show-hunk-posframe.el
@@ -192,7 +192,7 @@ The button calls an ACTION."
                    'keymap diff-hl-show-hunk-posframe--transient-mode-map)))
 
   (setq posframe-mouse-banish nil)
-  (setq diff-hl-show-hunk--original-frame last-event-frame)
+  (setq diff-hl-show-hunk--original-frame (selected-frame))
 
   (let* ((hunk-overlay diff-hl-show-hunk--original-overlay)
          (position (overlay-end hunk-overlay)))

Reply via email to