branch: externals/consult commit bbb53018aea11612d95067577d6a636db3406712 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Disable preview for consult-buffer-other-window (See #547) --- consult.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/consult.el b/consult.el index 82f622f7c5..3d6499d319 100644 --- a/consult.el +++ b/consult.el @@ -4128,9 +4128,7 @@ Report progress and return a list of the results" (lambda (action cand) ;; Only preview in current window and other window. ;; Preview in frames and tabs is not possible since these don't get cleaned up. - (when (and (eq action 'preview) - (memq consult--buffer-display - '(switch-to-buffer switch-to-buffer-other-window))) + (when (and (eq action 'preview) (eq consult--buffer-display #'switch-to-buffer)) (cond ((and cand (get-buffer cand)) (consult--buffer-action cand 'norecord))