Bug: data loss when inserting a line before folded section

What I did: See attached screen recording… I folded a heading, then with the cursor at the beginning of the line containing the folded heading pressed the enter key.

What happened: The folded section was expanded, and the heading text was deleted.

What I expected: An empty line to be inserted above the heading. Though I am aware of a related bug where the styling is lost. In this case the text content itself gets deleted.

Things that might be helpful to know (Agenda version, OS and model, etc):
Version 22.3.1 (397) - Mac App Store

I’m not support. Have you tried leaving an empty space below the note title and/or before the header?

Thanks for the clear report and recording, Patrick. That’s a worse variant than the styling-loss case we’ve discussed before, since the heading text itself goes away. We’ll dig in.

Drew

It’s happened before, and it just happened again.

The heading (1) suddenly wasn’t collapsed anymore, and several hidden lines of text below it just disappeared! Unfortunately, I can’t get those 12–15 lines back either :frowning:

What else do I remember?

On the iPad, I inserted a ^ character in the same format (H3) in the bottom-most heading (2) to make part of the hidden content (link and MD file) visible. This note was also open on the MacBook. After that, I switched between 2 or 3 other notes on the MacBook before returning to this note and noticing the error.

I don’t remember editing or expanding the heading (1) at all. That’s why the spot where the text disappeared is very strange.

I’m not sure if I even want to use this feature anymore. :persevering_face:

Edit: I just tried to reproduce the whole thing, but unfortunately I can’t.

OK, thanks. Will try to nail it down.