Skip to content

Commit d01c6c9

Browse files
authored
gist-current-url: simplify logic
1 parent 738fc32 commit d01c6c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gist.el

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

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

0 commit comments

Comments
 (0)