From: Leon W. <moo...@us...> - 2005-10-18 17:46:39
|
Update of /cvsroot/anyedit/AnyEditv2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11780 Modified Files: ScintillaEx.cpp Log Message: Fixed { indentation to not indent when it isn't the first character on the line. Index: ScintillaEx.cpp =================================================================== RCS file: /cvsroot/anyedit/AnyEditv2/ScintillaEx.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** ScintillaEx.cpp 17 Oct 2005 17:36:45 -0000 1.28 --- ScintillaEx.cpp 18 Oct 2005 17:46:31 -0000 1.29 *************** *** 1198,1201 **** --- 1198,1204 ---- iIndentation = GetLineIndentation( iLine - 1 ); + // Don't indent if the { isn't the first character after indentation. + if( GetCurrentPos() - 1 != GetLineIndentPosition( iLine ) ) return; + // Begin Undo BeginUndoAction(); |