From 945f423cde443c4d2d529dd20823d268a21058f4 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 9 May 2016 22:00:31 +0200 Subject: [PATCH] Don't let the user undo the initial text added to a Scintilla editor --- renderdocui/Windows/ShaderViewer.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderdocui/Windows/ShaderViewer.cs b/renderdocui/Windows/ShaderViewer.cs index 254473f71..ae3faf8fe 100644 --- a/renderdocui/Windows/ShaderViewer.cs +++ b/renderdocui/Windows/ShaderViewer.cs @@ -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; }