1 parent a03f142 commit 9520484Copy full SHA for 9520484
1 file changed
gist.el
@@ -538,7 +538,12 @@ for the gist."
538
539
(defun gist-current-url ()
540
"Helper function to fetch current gist url"
541
- (let* ((id (tabulated-list-get-id))
+ (let* ((id (or (and (boundp 'gist-list-mode)
542
+ gist-list-mode
543
+ (tabulated-list-get-id))
544
+ (and (boundp 'gist-mode)
545
+ gist-mode
546
+ gist-id)))
547
(gist (gist-list-db-get-gist id)))
548
(oref gist :html-url)))
549
0 commit comments