Re-calculate position if filtering changed the total number of lines

Oh my god! it's a goto! Sinner! Sinner!