$wrap is not the problem slecting wise (both methods offset the same ammount) non wrapped lines still return 1. I tried to catch the line that exceeded the middle. But i started from the line selected and calculate downwards from there not taking into account that lines above it might be way bigger then the lines below and therefor offsetting the "middle". Your's makes the same mistake but atleast does so damn faster (leave it up to you to come up with a smarter method smile). It comes close enough anyways smile


$maybe