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 afec6b9 + 1a641e6 commit 54a1042Copy full SHA for 54a1042
haskell-commands.el
@@ -340,11 +340,12 @@ position with `xref-pop-marker-stack'."
340
(haskell-mode-handle-generic-loc loc)
341
(call-interactively 'haskell-mode-tag-find))
342
(unless (equal initial-loc (point-marker))
343
- (save-excursion
344
- (goto-char initial-loc)
345
- (set-mark-command nil)
346
- ;; Store position for return with `xref-pop-marker-stack'
347
- (xref-push-marker-stack)))))
+ (with-current-buffer (marker-buffer initial-loc)
+ (save-excursion
+ (goto-char initial-loc)
+ (set-mark-command nil)
+ ;; Store position for return with `xref-pop-marker-stack'
348
+ (xref-push-marker-stack))))))
349
350
;;;###autoload
351
(defun haskell-mode-goto-loc ()
0 commit comments