Diff of /src/SciTEBuffers.cxx [ae4cfb] .. [45deb4]  Maximize  Restore

  Switch to unified view

a/src/SciTEBuffers.cxx b/src/SciTEBuffers.cxx
...
...
524
    wEditor.Call(SCI_SETUNDOCOLLECTION, 0);
524
    wEditor.Call(SCI_SETUNDOCOLLECTION, 0);
525
    wEditor.Call(SCI_CLEARALL);
525
    wEditor.Call(SCI_CLEARALL);
526
    wEditor.Call(SCI_EMPTYUNDOBUFFER);
526
    wEditor.Call(SCI_EMPTYUNDOBUFFER);
527
    wEditor.Call(SCI_SETUNDOCOLLECTION, 1);
527
    wEditor.Call(SCI_SETUNDOCOLLECTION, 1);
528
    wEditor.Call(SCI_SETSAVEPOINT);
528
    wEditor.Call(SCI_SETSAVEPOINT);
529
    wEditor.Call(SCI_SETREADONLY, isReadOnly);
529
    wEditor.Call(SCI_SETREADONLY, CurrentBuffer()->isReadOnly);
530
}
530
}
531
531
532
void SciTEBase::CreateBuffers() {
532
void SciTEBase::CreateBuffers() {
533
    int buffersWanted = props.GetInt("buffers");
533
    int buffersWanted = props.GetInt("buffers");
534
    if (buffersWanted > bufferMax) {
534
    if (buffersWanted > bufferMax) {
...
...
894
    CurrentBuffer()->isDirty = false;
894
    CurrentBuffer()->isDirty = false;
895
    CurrentBuffer()->failedSave = false;
895
    CurrentBuffer()->failedSave = false;
896
    CurrentBuffer()->lifeState = Buffer::open;
896
    CurrentBuffer()->lifeState = Buffer::open;
897
    jobQueue.isBuilding = false;
897
    jobQueue.isBuilding = false;
898
    jobQueue.isBuilt = false;
898
    jobQueue.isBuilt = false;
899
    isReadOnly = false; // No sense to create an empty, read-only buffer...
899
    CurrentBuffer()->isReadOnly = false; // No sense to create an empty, read-only buffer...
900
  CurrentBuffer()->isReadOnly = false;
901
900
902
    ClearDocument();
901
    ClearDocument();
903
    DeleteFileStackMenu();
902
    DeleteFileStackMenu();
904
    SetFileStackMenu();
903
    SetFileStackMenu();
905
    if (extender)
904
    if (extender)
...
...
912
    if (CurrentBuffer()->unicodeMode != uni8Bit) {
911
    if (CurrentBuffer()->unicodeMode != uni8Bit) {
913
        // Override the code page if Unicode
912
        // Override the code page if Unicode
914
        codePage = SC_CP_UTF8;
913
        codePage = SC_CP_UTF8;
915
        wEditor.Call(SCI_SETCODEPAGE, codePage);
914
        wEditor.Call(SCI_SETCODEPAGE, codePage);
916
    }
915
    }
917
  isReadOnly = CurrentBuffer()->isReadOnly;
918
916
919
    // check to see whether there is saved fold state, restore
917
    // check to see whether there is saved fold state, restore
920
    if (!buffer.foldState.empty()) {
918
    if (!buffer.foldState.empty()) {
921
        wEditor.Call(SCI_COLOURISE, 0, -1);
919
        wEditor.Call(SCI_COLOURISE, 0, -1);
922
        for (std::vector<int>::const_iterator fold=buffer.foldState.begin(); fold != buffer.foldState.end(); ++fold) {
920
        for (std::vector<int>::const_iterator fold=buffer.foldState.begin(); fold != buffer.foldState.end(); ++fold) {

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks