Community
    • Login

    The fold character is displayed on the wrong line

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 1 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Michael DannerM
      Michael Danner
      last edited by

      I have created a user-defined language for Arduino. Unfortunately, the fold character is displayed on the wrong line in code blocks (2 lines lower than expected).

      My input:
      Folding in Code 1. Styler:
      Open: {
      Close:}

      Displayed in editor:

      | Nr – + -SourceCode --------------
      ! 1      ! void loop () {
      ! 2      ! int i;
      ! 3 [+] ! …
      ! 4 !    ! …

      I would have expected the [+] in line 1 - but it appears in line 3. If I select the language C, it will be displayed correctly.

      Have I overlooked something, or is it a bug?

      Greeting MiDa

      1 Reply Last reply Reply Quote 0
      • Michael DannerM
        Michael Danner
        last edited by

        Complement:
        When I delete the first opening bracket “{” and re-enter it, the fold is displayed correctly.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors