File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
### Bugs fixed
6
6
7
7
- [ #3742 ] ( https://github.com/clojure-emacs/cider/issues/3742 ) : Restore syntax highlighting in result minibuffer.
8
+ - [ #3747 ] ( https://github.com/clojure-emacs/cider/issues/3747 ) : Fix errors when docstring is nil.
8
9
9
10
## 1.16.0 (2024-09-24)
10
11
Original file line number Diff line number Diff line change @@ -143,9 +143,10 @@ Prioritize rendering as much as possible while staying within `cider-docstring-m
143
143
144
144
(cl-defun cider-docstring--trim (string &optional (max-lines cider-docstring-max-lines))
145
145
" Return MAX-LINES of STRING, adding \" ...\" if trimming was necessary."
146
- (let* ((lines (split-string string " \n " ))
147
- (string (string-join (seq-take lines max-lines) " \n " )))
148
- (concat string (when (> (length lines) max-lines) " ..." ))))
146
+ (when string
147
+ (let* ((lines (split-string string " \n " ))
148
+ (string (string-join (seq-take lines max-lines) " \n " )))
149
+ (concat string (when (> (length lines) max-lines) " ..." )))))
149
150
150
151
(defun cider-docstring--format (string )
151
152
" Return a nicely formatted STRING to be displayed to the user.
You can’t perform that action at this time.
0 commit comments