Skip to content

Commit

Permalink
Update maintamgu.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudeRoux committed Dec 1, 2020
1 parent 8efb330 commit 49913ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/maintamgu.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -738,11 +738,11 @@ class tamgu_editor : public jag_editor {
thecurrentfilename = Normalizefilename(thecurrentfilename);
currentfileid = ifilenames.size();
ifilenames.push_back(thecurrentfilename);
lastlines.push_back(0);
codes.push_back(L"");
editor_keep kp;
editors_undos.push_back(kp);
editors_redos.push_back(kp);
lastlines.push_back(0);
filenames[thecurrentfilename] = currentfileid;
if (!fromwrite) {
//We create a local undos/redos section..
Expand Down Expand Up @@ -805,6 +805,7 @@ class tamgu_editor : public jag_editor {
}
currentfileid = ifilenames.size();
ifilenames.push_back(thecurrentfilename);
lastlines.push_back(0);
codes.push_back(code);

//We create a new redo/undo section
Expand Down Expand Up @@ -1529,6 +1530,7 @@ class tamgu_editor : public jag_editor {
if (filenames.find(thecurrentfilename) == filenames.end()) {
currentfileid = ifilenames.size();
ifilenames.push_back(thecurrentfilename);
lastlines.push_back(0);
filenames[thecurrentfilename] = currentfileid;
code = wconvert(cd);
codes.push_back(code);
Expand Down

0 comments on commit 49913ac

Please sign in to comment.