Skip to content

Commit 738fc32

Browse files
authored
Fix yanking URL from gist-list buffer
1 parent 9520484 commit 738fc32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gist.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,8 @@ for the gist."
538538

539539
(defun gist-current-url ()
540540
"Helper function to fetch current gist url"
541-
(let* ((id (or (and (boundp 'gist-list-mode)
542-
gist-list-mode
541+
(let* ((id (or (and (fboundp 'gist-list-mode)
542+
(eq major-mode 'gist-list-mode)
543543
(tabulated-list-get-id))
544544
(and (boundp 'gist-mode)
545545
gist-mode

0 commit comments

Comments
 (0)