Skip to content

Commit

Permalink
Use :buffer-list keyword instead of predicate
Browse files Browse the repository at this point in the history
Signed-off-by: Burgess Chang <[email protected]>
  • Loading branch information
brsvh committed May 27, 2024
1 parent e8b85f3 commit ce5f4dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions consult.el
Original file line number Diff line number Diff line change
Expand Up @@ -4600,8 +4600,7 @@ If NORECORD is non-nil, do not record the buffer switch in the buffer list."
(consult--buffer-query
:sort 'visibility
:as #'consult--buffer-pair
:predicate (lambda (buf)
(memq buf (frame-parameter nil 'buffer-list))))))
:buffer-list (frame-parameter nil 'buffer-list))))
"Buffer candidate source in current tab for `consult-buffer'.")

(defun consult--file-register-p (reg)
Expand Down

0 comments on commit ce5f4dd

Please sign in to comment.