diff --git a/lisp/org.el b/lisp/org.el index 6abb2db95..0c7fef0fa 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17950,6 +17950,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)))