Let’s say you have some text: (example1)
Section 1:
A thing
Another thing
Section 2:
A third thing
One more thing
Even more one more thing
If you fold on Section 1 you see: (example2)
Section 1: ...]
Section 2:
A third thing
One more thing
Even more one more thing
If you put your caret over Section 2: and move the line up (ctrl+shift+up) you see: (example3)
Section 1:...]Section 2:
Another thing
A third thing
One more thing
Even more one more thing
If we set this back to example2, and then move Section 2 down a line, we get this: (example4)
Section 1:...]
One more thing
Section 2:
Even more one more thing
In terms of what should happen, I imagine example3 should either have Section 2 on its own line, or it should unfold the entire section (because you are technically now editing something inside the scope of the fold.
With example 4, I imagine the correct thing would be to have ‘One more thing’ be encompassed by the fold when you move Section 2 past it.