Skip to content

Output of diff -r is not folded properly #1

@caetanosauer

Description

@caetanosauer

When looking at the output of "diff -r", which shows the differences between directories recursively, files that only exist in one dir or the other appear like this:

Only in dir1: file1.txt
Only in dir2: file2.txt

To avoid them being hidden under other normal file folds, the following can be added to the function DiffFoldLevel()

 elseif l:line =~# '^Only in' " file only in one folder when using diff -r
    return '>1'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions