Add fold markers to folded lines

Fixes #2634