Patch #3282 2012-04-27 21:55
alpha0010
Fix auto-indent with CR line endings- Download
- 3282-Fix_auto_inden.patch (447 bytes)
Index: src/sdk/cbeditor.cpp
===================================================================
--- src/sdk/cbeditor.cpp (revision 7946)
+++ src/sdk/cbeditor.cpp (working copy)
@@ -3220,7 +3220,7 @@
} // SelectionBraceCompletion
// indent
- if (ch == _T('\n'))
+ if (ch == _T('\n') || (control->GetEOLMode() == wxSCI_EOL_CR && ch == _T('\r')))
{
control->BeginUndoAction();
// new-line: adjust indentation