Fix +vcs/git-browse (aka :gbrowse)

This commit is contained in:
Henrik Lissner 2017-06-09 13:59:23 +02:00
parent 7ba22d0d86
commit 723e8a6570
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -15,8 +15,11 @@
"Open the website for the current version controlled file. Fallback to
repository root."
(interactive)
(destructuring-bind (beg end) (if buffer-file-name (git-link--get-region))
(git-link (git-link--select-remote) beg end)))
(require 'git-link)
(destructuring-bind (beg end)
(if buffer-file-name (git-link--get-region))
(let ((git-link-open-in-browser t))
(git-link (git-link--select-remote) beg end))))
;;;###autoload
(defun +vcs/git-browse-issues ()