Making Codemirror 6 respect indent for wrapped lines

@fonsp Thanks for that! I adapted your version to not use any dependencies other than Codemirror itself. I removed the React bit and replaced the Lodash for loops.

Just in case anyone else comes along looking for a similar solution:

Along with a little bit of (S)CSS. In my case I am using indent and active line markers, which both needed to have the indent size offset set back equal to negative the indent size, to account for the margin.

3 Likes