Simplify and optimize KateScriptDocument::anchorInternal
DocumentCursor is really slow and uneeded complexity. Just iterating the lines directly is much faster.
Running kateindenttest with this patch is ~1 second faster for me
DocumentCursor is really slow and uneeded complexity. Just iterating the lines directly is much faster.
Running kateindenttest with this patch is ~1 second faster for me