Skip to content

Commit

Permalink
gist-current-url: simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma committed Nov 28, 2017
1 parent 738fc32 commit d01c6c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gist.el
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,7 @@ for the gist."

(defun gist-current-url ()
"Helper function to fetch current gist url"
(let* ((id (or (and (fboundp 'gist-list-mode)
(eq major-mode 'gist-list-mode)
(let* ((id (or (and (eq major-mode 'gist-list-mode)
(tabulated-list-get-id))
(and (boundp 'gist-mode)
gist-mode
Expand Down

0 comments on commit d01c6c9

Please sign in to comment.