We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc0194d commit 6bdfbc9Copy full SHA for 6bdfbc9
ai-code-change.el
@@ -247,8 +247,9 @@ Returns non-nil if the action is handled and the caller should exit."
247
(defun ai-code--implement-todo--handle-blank-line ()
248
"Handle insertion of a TODO comment when on a blank line.
249
Returns non-nil if handled and the caller should exit."
250
+ ;; (interactive)
251
(when (and (not (region-active-p))
- (string-blank-p (thing-at-point 'line t))
252
+ (or (not (thing-at-point 'line t)) (string-blank-p (thing-at-point 'line t)))
253
comment-start)
254
(let ((todo-text (ai-code-read-string "Enter TODO comment: "))
255
(comment-prefix (if (eq major-mode 'emacs-lisp-mode)
0 commit comments