Interactive binary search for a line within a window or a buffer