Patch #3279 2012-04-18 18:11

alpha0010

Do not strip first blank when saving diff files
Download
3279-Do_not_strip_f.patch (582 bytes)
Category
Application::Refinement
Status
Accepted
Close date
2012-06-28 05:46
Assigned to
mortenmacfly
Index: src/sdk/cbeditor.cpp
===================================================================
--- src/sdk/cbeditor.cpp    (revision 7934)
+++ src/sdk/cbeditor.cpp    (working copy)
@@ -412,6 +412,10 @@
             int lineEnd = control->GetLineEndPosition(line);
             int i = lineEnd-1;
             wxChar ch = (wxChar)(control->GetCharAt(i));
+            if (control->GetLexer() == wxSCI_LEX_DIFF)
+            {
+                lineStart++;
+            }
             while ((i >= lineStart) && ((ch == _T(' ')) || (ch == _T('\t'))))
             {
                 i--;