diff --git a/lisp/org.el b/lisp/org.el index c5c080810..02a081339 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17663,6 +17663,8 @@ If INDENT is non-nil, call `newline-and-indent' with ARG to indent unconditionally; otherwise, call `newline' with ARG and INTERACTIVE, which can trigger indentation if `electric-indent-mode' is enabled." + (when interactive + (org-fold-check-before-invisible-edit 'insert)) (if indent (org-newline-and-indent arg) (newline arg interactive)))