1. agriggio
  2. aHg

Commits

agriggio  committed f00ac4e

Fixed bug that cause point to move incorrectly in ahg-status-sentinel

  • Participants
  • Parent commits 229cd8f
  • Branches default

Comments (0)

Files changed (1)

File ahg.el

View file
           (unless no-pop
             (pop-to-buffer outbuf))
           (set (make-local-variable 'ahg-window-configuration) cfg)
-          (let ((inhibit-read-only t)
-                (node (ewoc-nth ew 0)))
-            (when node (goto-char (ewoc-location node))))
+          (with-current-buffer outbuf
+            (let ((inhibit-read-only t)
+                  (node (ewoc-nth ew 0)))
+              (when node (goto-char (ewoc-location node)))))
           (when point-pos
             (with-current-buffer outbuf
               (ahg-goto-line-point point-pos)))