Skip to content

Commit

Permalink
Fix: (org-ql-find) Pop to buffer then go to position
Browse files Browse the repository at this point in the history
Seems that selecting the window after going to the position can
sometimes break (probably because of the window point).
  • Loading branch information
alphapapa committed Nov 6, 2023
1 parent 72b9934 commit 4f62ba3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions org-ql-find.el
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ single predicate)."
:query-filter query-filter
:prompt prompt)))
(set-buffer (marker-buffer marker))
(pop-to-buffer (current-buffer) org-ql-find-display-buffer-action)
(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)))

;;;###autoload
Expand Down

0 comments on commit 4f62ba3

Please sign in to comment.