Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Copy to right" doesn't work under special circumstances (left nothing, right additonal emtpy line) #2204

Open
rondlh opened this issue Feb 4, 2024 · 2 comments

Comments

@rondlh
Copy link

rondlh commented Feb 4, 2024

In the image below, the right file has an additional empty line, which I want to mirror to the right (delete the extra line), but the "copy to right function" doesn't do that, nothing seems to happen when I click "Copy to right".

Copy To Right

I have "Ignore blank lines" enabled, perhaps this is the cause.

@sdottaka
Copy link
Member

sdottaka commented Feb 4, 2024

Enabling "Ignore blank lines" will ignore differences in blank lines and make the background a light yellow color. As you might have guessed, the ignored differences are not eligible for copying.
Disable "Ignore blank lines" to copy the differences.

@rondlh
Copy link
Author

rondlh commented Feb 7, 2024

This behavior is a bit odd in my view, WinMerge shows me there is a difference, and give me the option to copy it, but just ignores me when I select it. In my view it would be better to:

  1. not show the difference
    OR
  2. copy the difference if I use the copy option.
    Showing me a difference, but not letting me copy seems not logical.
    I do not like to toggle "Ignore blank lines" the whole time just to copy these blank lines.

UPDATE: Even more illogical is that if there is a blank line on the left, but nothing on the right, then "Copy to the right" works fine (with "Ignore blank lines" enabled).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants