aboutsummaryrefslogtreecommitdiff
path: root/perspective.el
diff options
context:
space:
mode:
authorConstantine Vetoshev <gepardcv@gmail.com>2019-02-25 11:14:50 -0800
committerConstantine Vetoshev <gepardcv@gmail.com>2019-02-25 11:14:50 -0800
commit25e4e110cce4d5a8fb6c9670a04c5a1a217c4ff4 (patch)
tree7a9094b84274533b68a1c0d5eb3cf5261e5449f6 /perspective.el
parent2c8cf56d170c3eb1fcc1a8fe41026b780e0ffead (diff)
Fix error when persp-remove-buffer gets nil as argument.
Diffstat (limited to 'perspective.el')
-rw-r--r--perspective.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/perspective.el b/perspective.el
index 1f6f1fb..3bab87b 100644
--- a/perspective.el
+++ b/perspective.el
@@ -625,7 +625,7 @@ Prefers perspectives in the selected frame."
See also `persp-switch' and `persp-add-buffer'."
(interactive "bRemove buffer from perspective: \n")
- (setq buffer (get-buffer buffer))
+ (setq buffer (when buffer (get-buffer buffer)))
(cond ((not (buffer-live-p buffer)))
;; Only kill the buffer if no other perspectives are using it
((not (persp-buffer-in-other-p buffer))