Bugs item #3290514, was opened at 2011-04-20 21:32
Message generated for change (Comment added) made by lebert
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
----------------------------------------------------------------------
Comment By: Bert Wesarg (lebert)
Date: 2011-04-21 08:45
Message:
Commited fix to HEAD.
----------------------------------------------------------------------
Comment By: Bert Wesarg (lebert)
Date: 2011-04-21 08:34
Message:
Thanks for the report, but I think the right fix is to fix the use of
$em_tab_dist in the common smart indent macros of NEdit itself.
----------------------------------------------------------------------
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