aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgcv <gepardcv@gmail.com>2020-11-13 20:47:34 -0800
committerGitHub <noreply@github.com>2020-11-13 20:47:34 -0800
commit63cddcdfb8a777178bc976df1079030701fc3310 (patch)
tree10cbb6efd334bb54250276d23c37b1bbebaf8b55
parent20dfc8ce4eb8203713637f241d083f23678af01c (diff)
parent7dc0320b2419e8338acf518d176c21deb9cecfbe (diff)
Merge pull request #136 from gcentauri/fix-switch-buffer
Fix: persp-switch-buffer use ivy-switch-buffer as caller
-rw-r--r--perspective.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/perspective.el b/perspective.el
index d790119..0b83e5d 100644
--- a/perspective.el
+++ b/perspective.el
@@ -1260,6 +1260,7 @@ PERSP-SET-IDO-BUFFERS)."
(cl-remove-if #'null (mapcar #'buffer-name (persp-current-buffers)))
:preselect (buffer-name (persp-other-buffer (current-buffer)))
:keymap ivy-switch-buffer-map
+ :caller #'ivy-switch-buffer
:action #'ivy--switch-buffer-action
:matcher #'ivy--switch-buffer-matcher)
ivy-params))
@@ -1293,8 +1294,7 @@ PERSP-SET-IDO-BUFFERS)."
(declare-function counsel--switch-buffer-unwind "counsel.el")
(declare-function counsel--switch-buffer-update-fn "counsel.el")
(persp--switch-buffer-ivy-counsel-helper arg
- (list :caller #'counsel-switch-buffer
- :unwind #'counsel--switch-buffer-unwind
+ (list :unwind #'counsel--switch-buffer-unwind
:update-fn #'counsel--switch-buffer-update-fn)
#'counsel-switch-buffer))