FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Keep destination line endings when copying lines · Issue #53 · visualdiffer/visualdiffer · GitHub

Keep destination line endings when copying lines #53

Description

When I copy lines with the newest version but also was with 2.1.14 I have sometimes parts in the changed file.

In the image the lines 391 to 397 were copied from left to right and then opened with Textmate Editor.

Originally posted by @Timm-T in #30

What happens?

When copying selected lines from one side to the other, the copied text can keep the source line endings. This can introduce mixed line endings in the destination file after a merge action.

What did you expect to happen?

Copied lines should use the destination file line endings when the destination has a consistent EOL style. If the destination has mixed line endings, the copy operation should leave the source line endings unchanged.

Steps to reproduce

  1. Compare two text files where the source uses LF and the destination uses CRLF.
  2. Select a changed line on the source side.
  3. Copy the selected line to the destination side.
  4. Check the copied line ending in the destination file.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfile compareRelated to file comparison

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL