(start_view, target_view)
return (
        max(1, min_line - explore_lines),
        min(len(vim.current.buffer), max_line + explore_lines),
    )
Return the minimum and maximum line numbers to explore.

    :param start_view: The start position.
    :param target_view: The target position.
    :returns: Tuple of (min line, max line)
Return the minimum and maximum line numbers to explore.
Return the minimum and maximum line numbers to explore .
def get_line_limits(start_view, target_view):
    """
    Return the minimum and maximum line numbers to explore.

    :param start_view: The start position.
    :param target_view: The target position.
    :returns: Tuple of (min line, max line)
    """
    min_line = min(int(start_view.lnum), int(target_view.lnum))
    max_line = max(int(start_view.lnum), int(target_view.lnum))
    explore_lines = get_explore_lines(max_line - min_line)

    return (
        max(1, min_line - explore_lines),
        min(len(vim.current.buffer), max_line + explore_lines),
    )
def get_line_limits ( start_view , target_view ) : min_line = min ( int ( start_view . lnum ) , int ( target_view . lnum ) ) max_line = max ( int ( start_view . lnum ) , int ( target_view . lnum ) ) explore_lines = get_explore_lines ( max_line - min_line ) return ( max ( 1 , min_line - explore_lines ) , min ( len ( vim . current . buffer ) , max_line + explore_lines ) , )