Don't let the user undo the initial text added to a Scintilla editor

This commit is contained in:
baldurk
2016-05-09 22:00:31 +02:00
parent c79e4b847f
commit 945f423cde
+3
View File
@@ -791,6 +791,9 @@ namespace renderdocui.Windows
const uint SCI_SETSCROLLWIDTHTRACKING = 2516;
scintilla1.NativeInterface.SendMessageDirect(SCI_SETSCROLLWIDTHTRACKING, true);
// don't let the user undo the initial text insertion
scintilla1.UndoRedo.EmptyUndoBuffer();
return scintilla1;
}