Rezi
    Preparing search index...

    Function getHunkScrollPosition

    • Get scroll position to show a specific hunk.

      Parameters

      • hunkIndex: number

        Target hunk index

      • hunks: readonly Readonly<
            {
                header?: string;
                lines: readonly Readonly<
                    {
                        content: string;
                        highlights?: readonly (readonly [number, number])[];
                        newLineNumber?: number;
                        oldLineNumber?: number;
                        type: "context" | "add" | "delete";
                    },
                >[];
                newCount: number;
                newStart: number;
                oldCount: number;
                oldStart: number;
            },
        >[]

        All hunks

      Returns number

      Scroll position (line offset)