From ec4a030370f2f301a99ef084fa743bbf2aec9373 Mon Sep 17 00:00:00 2001 From: yuhan0 Date: Fri, 1 Nov 2019 20:41:14 +0800 Subject: [PATCH] Fix buttons in doom/help-packages --- core/autoload/help.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/autoload/help.el b/core/autoload/help.el index a524ba34b..e7364fd6b 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -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")))))