Skip to content

Commit 8e25e8b

Browse files
committed
Clear input field before execution
1 parent cc39ee1 commit 8e25e8b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

XrefViewer/XrefViewerWindow.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ private void InputTextBox_KeyPress(object sender, KeyPressEventArgs e)
3636
{
3737
if (e.KeyChar == (char)Keys.Return)
3838
{
39-
CommandHandler.ParseAndExecute(InputTextBox.Text);
39+
string command = InputTextBox.Text;
4040
InputTextBox.Text = "";
41+
CommandHandler.ParseAndExecute(command);
4142
}
4243
}
4344
}

0 commit comments

Comments
 (0)