Skip to content

Regression: single line control block languages do not auto indent #9113

@vinsworldcom

Description

@vinsworldcom

Description of the Issue

This was introduced with #9051. Take C for example,

Steps to Reproduce the Issue

  1. Set language type to C
  2. Type:
if (test)
  1. Press return after the close parenthesis

Expected Behavior

Cursor should move to the next line indented.

Actual Behavior

Cursor moves to the next line unindented.

Debug Information

Notepad++ v7.9.1 (64-bit)
Build time : Nov 5 2020 - 20:34:09
Path : C:\usr\bin\npp64\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1909
OS Build : 18363.1139
Current ANSI codepage : 1252
Plugins :

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