Skip to content

Broken folding when using LF instead of CRLF. [N++ v. 7.6.6 64-bit] #5499

@Fiooodooor

Description

@Fiooodooor

Description of the Issue

When using custom language settings the folding won't work with defined delimiter and EOL symbol set to Linux-style LF. Works ok with Windows-style end of line CR LF. The same as issue nr #350.

Steps to Reproduce the Issue

  1. Define custom language with 'folding in code 1 style' opener '{' and closure '}'.
  2. Define 'delimiter 1 style' with opener and closure set to quotation marks (the " sign).
  3. Preview a sample file with EOL defined as 'LF' sign.

Expected Behavior

Begin and end of folding in lines containing the '{' and '}' signs.

Actual Behavior

Folding behave randomly and change dynamically depending on changes made to the document. Example with user-defined language and only two setted as bellow:
'Folding in code 1 style' to
open: {
close: }
'Delimiter 1 style' to
open: "
close: "
notepadpp_7_6_6
.

Debug Information

Notepad++ v7.6.6 (64-bit)
Build time : Apr 3 2019 - 23:52:32
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : mimeTools.dll NppConverter.dll

Deleting all the 'tab' symbols changes the behavior of folding mechanism, but all the time the detection of open and close symbol works fine as in the image below:
notepadpp_7_6_6_1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions