protected virtual void OnExited(InsertionCursorEventArgs e)
        {
            DestroyHelpWindow();
            editor.Caret.IsVisible = true;
            editor.TextViewMargin.RemoveDrawer(drawer);
            editor.CurrentMode = oldMode;

            var handler = Exited;

            if (handler != null)
            {
                handler(this, e);
            }

            editor.Document.CommitUpdateAll();
        }
		protected virtual void OnExited (InsertionCursorEventArgs e)
		{
			DestroyHelpWindow ();
			editor.Caret.IsVisible = true;
			editor.TextViewMargin.RemoveDrawer (drawer);
			editor.CurrentMode = oldMode;
			
			var handler = Exited;
			if (handler != null)
				handler (this, e);
			
			editor.Document.CommitUpdateAll ();
		}