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

fix CTextFile line recognition #6

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

lifenjoiner
Copy link
Collaborator

@lifenjoiner lifenjoiner commented Feb 13, 2024

This may break the logic of dependents!

  • line encodings are the tail part of a line, and then can be shown

Test example with grepWin (needs patch stefankueng/grepWin#455):

  1. File:
    1.1. the last line is empty

    AAAAAA
    AAAAAA
    
    BBBBBB
      AAA
    BBBBBB
    BBB
    CCC
    
    

    1.2. append something to the last line, but no new line

  2. Line encoding
    2.1 \r
    2.2 \n
    2.3 \r\n
    2.4 Mixture for patches generated by git for windows.

  3. Search pattern
    3.1. A+\s+B+
    3.2. C+\s+

* line encodings are the tail part of a line, and then can be shown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants