Bugs item #3290514, was opened at 2011-04-20 15:32
Message generated for change (Tracker Item Submitted) made by rrpollack
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=3290514&group_id=11005

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Program
Group: development
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Reece Pollack (rrpollack)
Assigned to: Nobody/Anonymous (nobody)
Summary: Smart Indent broken in 5.6

Initial Comment:
Smart Indent in 'C' (and probably other languages) was broken after the 5.5 
release. Rather than increasing indentation after a conditional, loop, or 
opening brace, the indentation level remains the same. Nor does the indentation 
level decrease after a closing brace.

I've traced this behavior to the changes made in response to tracker #1560892. 
Reverting these changes restores proper operation of Smart Indent.

To test:
1) Start nedit
2) Select Preferences -> Language Mode -> C
3) Verify Preferences -> Auto Indent -> Smart
4) Start entering (NOT cut-n-paste) a C program like this:

int f(int x)<ENTER>{<ENTER>

5) The broken version will leave the cursor at the left margin. The 5.5 version 
auto-indents one tab stop.

Reverting the following commits in CVS restores the 5.5 behavior:
    1.107  doc/help.etc
    1.115  source/macro.c
    1.141  source/menu.c


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=3290514&group_id=11005
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to