Skip to content

Foldmethod is not reset after :Diffoff #39

@savchenko

Description

@savchenko

After executing :Diffoff, foldmethod stays at diff. Can be reproduced as following:

  1. Open two files in vertical splits, have foldmethod set to marker
  2. Switch to visual mode, select lines in both
  3. :Diffthis
  4. Execute :Diffoff in both splits
  5. :set foldmethod?

On the side-note, I would be handy to have single command that exits the diff mode and restores the window layout back to what it was.

Tested on nvim v0.10.2

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