Patch #3365 2012-11-12 23:27

alpha0010

SmartIndent: enable on entire C-language family
Download
3365-SmartIndent_en.patch (676 bytes)
Category
Plugin::Refinement
Status
Accepted
Close date
2012-12-13 15:08
Assigned to
mortenmacfly
Index: src/plugins/contrib/SmartIndent/SmartIndentCpp.cpp
===================================================================
--- src/plugins/contrib/SmartIndent/SmartIndentCpp.cpp    (revision 8551)
+++ src/plugins/contrib/SmartIndent/SmartIndentCpp.cpp    (working copy)
@@ -42,7 +42,7 @@
         return;
 
     wxString langname = Manager::Get()->GetEditorManager()->GetColourSet()->GetLanguageName(ed->GetLanguage());
-    if ( langname != _T("C/C++") && langname != _T("D") && langname != _T("Java") ) return;
+    if ( langname != wxT("D") && (stc->GetLexer() != wxSCI_LEX_CPP || langname == wxT("Hitachi asm"))) return;
 
     ed->AutoIndentDone(); // we are responsible.