Staged/committed file content preview issue with CR line endings

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Low
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      The File Contents window doesn't properly display the contents when a staged or committed file is using CR line endings (example of such a file attached to this ticket for your convenience).

      • It thinks the entire file is a single line. "1 lines added" in the top summary
      • The first line is green/red with the +/- sign in the 3rd column
      • The remaining lines have the first character in the 3rd column instead of in the "body" window pane

      This only happens with staged/committed files. When previewing a file that is in the working tree, it shows properly.

      Also attached is screen shot showing the untracked file (showing proper) and the staged file (showing corrupted) as well as the test text file using CR line endings.

        1. Bug-CR-LineEnding.png
          Bug-CR-LineEnding.png
          30 kB
        2. test-ascii-cr.txt
          0.0 kB

            Assignee:
            Unassigned
            Reporter:
            Malik Mangier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: