handle nil returned from helm on C-g

This commit is contained in:
2019-12-15 21:13:41 +01:00
parent dff227a67c
commit ac91a5c16a
2 changed files with 12 additions and 9 deletions

View File

@ -44,9 +44,10 @@ inserted between the braces between the braces."
(defun my-godoc-package ()
"Display godoc for given package (with completion)."
(interactive)
(godoc (helm :sources (helm-build-sync-source "Go packages"
:candidates (go-packages))
:buffer "*godoc packages*")))
(godoc (or (helm :sources (helm-build-sync-source "Go packages"
:candidates (go-packages))
:buffer "*godoc packages*")
(signal 'quit nil))))
(use-package flycheck
:defer)