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:
parent
36dcf53cc0
commit
60950f1148
BizHawk.Client.EmuHawk/tools/TAStudio
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue