Help save net neutrality! Learn more.
Close

#1111 Line added after empty braces{} is indented

open
SciTE (627)
4
2011-03-10
2011-03-10
Sandeep
No

Lines added after an empty curly braces are indented.
How to reproduce:
1) add {}
2) hit enter
Observe that the added line is indented.

I have a fix and if you approve then please guide me to submit the fix.

Thanks,
Sandeep Sindhu

Discussion

  • Sandeep

    Sandeep - 2011-03-10

    Updated IndentationStatus()

     
  • Neil Hodgson

    Neil Hodgson - 2011-03-10
    • assigned_to: nobody --> nyamatongwe
    • priority: 5 --> 4
     
  • Neil Hodgson

    Neil Hodgson - 2011-03-10

    Unfortunately that does not work when indent.closing=1, causing an extra unindent after the {} line. It would be safer to treat {} as having no effect although that will cause previous lines to be checked

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-09-14

    I've been experiencing the same issue. It's minorly annoying in anything that has empty braces - codeless constructors in C++, array literal syntax in various languages, etc. A resolution would be much appreciated!

     

Log in to post a comment.