Skip to content

Context option not working? #381

Closed
Closed
@thercyl

Description

@thercyl

Hi, I tried doing Diff.createTwoFilesPatch('c.txt', 'd.txt', c, d, {newlineIsToken: true, ignoreWhitespace: true, context: Number.MAX_SAFE_INTEGER}) where c.txt and d.txt contain 10 lines in each file. There is only one line of difference between the two files but I want to show all remaining unchanged text as well. But right now, it will only return the first five lines (@@ -1,5 +1,5 @@) no matter what i set the context option to (eg I tried doing context:50). Is the context function working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions