Merge pull request #2001 from yuhan0/fix-help-buttons

Fix buttons in doom/help-packages
This commit is contained in:
Henrik Lissner 2019-11-01 13:08:05 -04:00 committed by GitHub
commit 7759130ba3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -500,10 +500,10 @@ If prefix arg is present, refresh the cache."
'action
`(lambda (_)
(cl-destructuring-bind (file line _match)
,(split-string location ":")
',(split-string location ":")
(find-file (expand-file-name file doom-emacs-dir))
(goto-char (point-min))
(forward-line (1- line))
(forward-line (1- (string-to-number line)))
(recenter)))))
(insert "\n\n")))))