Skip to content

Problem with folds #25

@hcgraf

Description

@hcgraf

Hi,

when working with this (btw. very great) plugin and very big files, I found the following bug:
Because my blocks to compare are very long, it's convenient to fold them first and then do the Linediff.
That causes Linediff to remove the end of the file (i.e. after the second block).

I'll do a step by step example:

  • Open vim with an empty buffer. Type / paste the following code:
def one
  two
end

def two
  three
end

something at the end of the file
  • Fold the two blocks of codes (vim ex commands):
:1,3fold
:5,7fold
  • Select each block for Linediff (the cool thing is, this works with V on the closed fold!):
:1,3Linediff
:5,7Linediff
  • Change something in the second (right) diff-buffer, and save it

Result (at least for me):

  • The change is correctly copied to the original buffer (that's good)
  • The fold is gone (that's not perfect but ok)
  • The text after the second fold is gone (that's the bug ;-) )

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