Skip to content

Commit

Permalink
fix: warning for persp functions access
Browse files Browse the repository at this point in the history
  • Loading branch information
Artawower committed Feb 21, 2023
1 parent d924d94 commit 6071852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buffer-hop.el
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@

(defun bh--get-persp-name ()
"Get persp name of current opened buffer or return default."
(if (bound-and-true-p persp-mode)
(if (and (fboundp 'safe-persp-name) (fboundp 'get-current-persp))
(safe-persp-name (get-current-persp))
"default"))

Expand Down

0 comments on commit 6071852

Please sign in to comment.