Skip to content

Incorrect indentation on one-line entities #1173

@cpyrgas

Description

@cpyrgas

When the option to Indent statements inside entities is enabled, then after pressing Enter on a function, method etc, the caret is moved one tab to the right, which is correct. But the same happens also for GLOBALs, DEFINEs and ivars, in which case it shouldn't

For example, type enter after any of the one-line entities below, that caret is moved one tab to the right. Then after typing something with this wrong indentation, pressing enter on the new code does bring the indentation back again to its correct position

global g1 as int
global g2 as int
    
CLASS TestClass
EXPORT ex as int
export ex2 as int
END CLASS

btw, just noticed that the problem with DEFINEs also exists in XIDE

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions