Skip to content

Commit cd81fa4

Browse files
committed
Add doc
1 parent a062c77 commit cd81fa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docstr-key.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ conditions."
7575

7676
(defun docstr-key-single-line-prefix-insertion ()
7777
"Insertion for single line comment."
78-
(when (docstr-util-current-line-empty-p)
78+
(when (docstr-util-current-line-empty-p) ; Ensure on newline
7979
(let* ((prev-line-text (save-excursion (forward-line -1) (thing-at-point 'line)))
8080
(prev-line-doc-symbol (docstr-util-comment-line-symbol -1))
8181
(current-line-doc-symbol (docstr-util-comment-line-symbol))

0 commit comments

Comments
 (0)