Resolve part of #3506

This commit is contained in:
Morilli 2023-02-12 12:30:14 +01:00
parent a2ff685fc1
commit fcbc44b64f
1 changed files with 6 additions and 2 deletions

View File

@ -467,7 +467,9 @@ namespace BizHawk.Client.EmuHawk
if (lines.Length > 0)
{
_tasClipboard.Clear();
for (int i = 0; i < lines.Length - 1; i++)
int linesToPaste = lines.Length;
if (lines[lines.Length - 1] == "") linesToPaste--;
for (int i = 0; i < linesToPaste; i++)
{
var line = ControllerFromMnemonicStr(lines[i]);
if (line == null)
@ -507,7 +509,9 @@ namespace BizHawk.Client.EmuHawk
if (lines.Length > 0)
{
_tasClipboard.Clear();
for (int i = 0; i < lines.Length - 1; i++)
int linesToPaste = lines.Length;
if (lines[lines.Length - 1] == "") linesToPaste--;
for (int i = 0; i < linesToPaste; i++)
{
var line = ControllerFromMnemonicStr(lines[i]);
if (line == null)