Patch #3282 2012-04-27 21:55

alpha0010

Fix auto-indent with CR line endings
Download
3282-Fix_auto_inden.patch (447 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2012-05-19 12:40
Assigned to
mortenmacfly
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