summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/treesit.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 5e6f109531e..4c31ecb0d29 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -1152,6 +1152,9 @@ See `treesit-simple-indent-presets'.")
(and (>= (point) comment-start-bol)
adaptive-fill-regexp
(looking-at adaptive-fill-regexp)
+ ;; If previous line is an empty line, don't
+ ;; indent.
+ (not (looking-at (rx (* whitespace) eol)))
(match-end 0))))))
;; TODO: Document.
(cons 'grand-parent