mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-07 12:51:33 +00:00
Don't let the user undo the initial text added to a Scintilla editor
This commit is contained in:
1 parent
c79e4b847f
commit
945f423cde
1 file changed
+3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user