mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't let the user undo the initial text added to a Scintilla editor
This commit is contained in:
@@ -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