Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Oct 9, 2024
1 parent 6017228 commit 4f2aa6a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions JL.Windows/GUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ private bool CopyText(string text)
if (sanitizedNewText.StartsWith(previousText, StringComparison.Ordinal))
{
subsequentText = sanitizedNewText[previousText.Length..];
mergedText = sanitizedNewText;
}
}
else
Expand All @@ -204,10 +203,6 @@ private bool CopyText(string text)
{
subsequentText = null;
}
else
{
mergedText = previousText + subsequentText;
}

break;
}
Expand All @@ -220,11 +215,11 @@ private bool CopyText(string text)
if (mergeTexts)
{
MainTextBox.AppendText(subsequentText);
mergedText = MainTextBox.Text;
}
else
{
MainTextBox.Text = sanitizedNewText;
mergedText = null;
}

MainTextBox.Foreground = ConfigManager.MainWindowTextColor;
Expand Down

0 comments on commit 4f2aa6a

Please sign in to comment.