branch: elpa/cider commit 6ea2cc3f7c13f8e02dddab79c5c478b05431c265 Author: Oleksandr Yakushev <a...@bytopia.org> Commit: Bozhidar Batsov <bozhi...@batsov.dev>
[eldoc] Don't error on missing docstring --- cider-docstring.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cider-docstring.el b/cider-docstring.el index 700f3c1bd1..73b29ad24a 100644 --- a/cider-docstring.el +++ b/cider-docstring.el @@ -157,7 +157,8 @@ that it usually has two spaces before each line used for indentation \(see https://guide.clojure.style/#docstring-indentation). While displaying the docstring to the user, we usually want to control indentation and other aspects of the presentation, so we format it before displaying." - (replace-regexp-in-string "\n " "\n" string)) + (when string + (replace-regexp-in-string "\n " "\n" string))) (provide 'cider-docstring) ;;; cider-docstring.el ends here