tastudio paste: clipboard input would give an extra empty line after splicing for whatever reason. Iterate thorough one less line.

This commit is contained in:
feos 2016-11-10 00:28:41 +03:00
parent 36dcf53cc0
commit 60950f1148
1 changed files with 2 additions and 2 deletions
BizHawk.Client.EmuHawk/tools/TAStudio

View File

@ -401,7 +401,7 @@ namespace BizHawk.Client.EmuHawk
if (lines.Length > 0)
{
_tasClipboard.Clear();
for (int i = 0; i < lines.Length; i++)
for (int i = 0; i < lines.Length - 1; i++)
{
var line = TasClipboardEntry.SetFromMnemonicStr(lines[i]);
if (line == null)
@ -448,7 +448,7 @@ namespace BizHawk.Client.EmuHawk
if (lines.Length > 0)
{
_tasClipboard.Clear();
for (int i = 0; i < lines.Length; i++)
for (int i = 0; i < lines.Length - 1; i++)
{
var line = TasClipboardEntry.SetFromMnemonicStr(lines[i]);
if (line == null)