Fix folding rect len when sub block is folded
Improve linePos to use self.document instead of visibleBlocks
close #43