search history up to current cursor