Fix: (org-ql-find) Pop to buffer then go to position

Seems that selecting the window after going to the position can
sometimes break (probably because of the window point).
This commit is contained in:
Adam Porter 2023-11-06 16:30:20 -06:00
parent 72b9934d1f
commit 4f62ba3bd6

View file

@ -76,9 +76,8 @@ single predicate)."
:query-filter query-filter :query-filter query-filter
:prompt prompt))) :prompt prompt)))
(set-buffer (marker-buffer marker)) (set-buffer (marker-buffer marker))
(pop-to-buffer (current-buffer) org-ql-find-display-buffer-action)
(goto-char marker) (goto-char marker)
(display-buffer (current-buffer) org-ql-find-display-buffer-action)
(select-window (get-buffer-window (current-buffer)))
(run-hook-with-args 'org-ql-find-goto-hook))) (run-hook-with-args 'org-ql-find-goto-hook)))
;;;###autoload ;;;###autoload