Fix for caret placement after multiple lines with different text indents are folded

...e different text indents

when multiple lines folded and have different text indents