Bug #14298 2008-08-01 15:06

pecan

Margin numbers and width not re-establised after reload

Index: src/sdk/cbeditor.cpp
===================================================================
--- src/sdk/cbeditor.cpp	(revision 5170)
+++ src/sdk/cbeditor.cpp	(working copy)
@@ -1170,6 +1170,9 @@
     if (!Open(detectEncoding))
         return false;
 
+    // Re-establish margin styles, width,  etc
+    SetEditorStyleAfterFileOpen();
+
     // return (if possible) to old pos
     if (m_pControl)
         m_pControl->GotoPos(pos);
Category
 
Group
 
Status
Closed
Close date
2008-08-01 15:56
Assigned to
 
pecan 2008-08-01 15:08

When an external program modifies a open file, and CB reloads the file, the editor margins style, width, and numbers are not re-established. A call to SetEditorStyleAfterFileOpen() solves the problem.

killerbot 2008-08-01 15:56

fixed, due to applying the patch. Thanks.