diff --git a/.github/workflows/CI_build.yml b/.github/workflows/CI_build.yml index 17e26be..8b13789 100644 --- a/.github/workflows/CI_build.yml +++ b/.github/workflows/CI_build.yml @@ -1,47 +1 @@ -name: CI build -on: - pull_request: - push: - branches: [main] - -jobs: - build: - runs-on: windows-latest - - strategy: - fail-fast: false - matrix: - config: [Debug Unicode, Release Unicode] - platform: [Win32, x64] - - name: ${{ matrix.config }} / ${{ matrix.platform }} - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup MSBuild - uses: microsoft/setup-msbuild@v2 - - - name: Setup NuGet - uses: NuGet/setup-nuget@v2 - - - name: Restore - run: nuget restore - - - name: Build - run: | - msbuild NppTextFX2.sln ^ - /p:Configuration="${{ matrix.config }}" ^ - /p:Platform="${{ matrix.platform }}" ^ - /m - - # 🔵 Artefakte für Release builds (Win32 + x64) - - name: Upload Release artifact - if: matrix.config == 'Release Unicode' - uses: actions/upload-artifact@v4 - with: - name: NppTextFX2_${{ matrix.platform }} - path: | - **/${{ matrix.platform }}/Release*/NppTextFX*.dll diff --git a/SRC/NPPTextFX.cpp b/SRC/NPPTextFX.cpp index 3e64cb8..9e415cc 100644 --- a/SRC/NPPTextFX.cpp +++ b/SRC/NPPTextFX.cpp @@ -4955,8 +4955,7 @@ EXTERNC void convertall(char cmd,unsigned flags,const char *s1,const char *s2,co SENDMSGTOCED(currentEdit, SCI_REPLACETARGET, chn, d); } d += chn; - if ((d[0]=='\r' && d[1]=='\n') || (d[0]=='\n' && d[1]=='\r')) d+=2; - else if (d[0]=='\r' || d[0]=='\n') d++; + d = memspn(d,end,"\r\n",2); } /*curpos = lpe[blocklines-1]+SENDMSGTOCED(currentEdit, SCI_POSITIONFROMLINE, p1line+blocklines-1, 0); if (curpos