Skip to content

Bug in default folding behavior #62

@jebaum

Description

@jebaum

Without setting g:magit_default_fold_level, or setting it to 1, when I first load :Magit, the hunks are unfolded. I figured out this is because my vimrc has set foldnestmax=1 in it, which I like for normal editing, but having a higher foldnestmax (like the vim default of 20) is needed for magit. I think the Magit buffer ought to do setlocal foldnestmax=20 to solve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions