Skip to content

Commit 24f25b8

Browse files
committed
Undo starts after loading file
1 parent e732dd7 commit 24f25b8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/text-editor/editor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ void Editor::readFile(){
104104
turbo::call(scintilla, SCI_APPENDTEXT, readBytes, (sptr_t)buffer);
105105
remainingBytes -= readBytes;
106106
}
107+
turbo::call(scintilla, SCI_EMPTYUNDOBUFFER, 0, 0);
107108
turbo::call(scintilla, SCI_SETSAVEPOINT, 0, 0);
108109
updateAll();
109110
}

0 commit comments

Comments
 (0)