fixed bug with inserting date/time

This commit is contained in:
Alexander 2022-05-30 22:19:37 +03:00
parent 3a5e786eea
commit 342bedaabc
No known key found for this signature in database
GPG key ID: F68D8C9B429E6FF6

View file

@ -1628,9 +1628,7 @@ private void ReadOnlyMainMenu_Click(object sender, EventArgs e)
private void InsertDateTimeMainMenu_Click(object sender, EventArgs e)
{
DateTime now = DateTime.Now;
richTextBox.Text += now.ToString();
richTextBox.SelectionStart = richTextBox.Text.Length;
richTextBox.ScrollToCaret();
richTextBox.SelectedText = now.ToString();
richTextBox.Modified = true;
if (!Text.Contains("*"))
{