mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
parent
0b2aded63a
commit
dc6cdbd4c2
@ -5104,7 +5104,14 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
tb.Focus();
|
||||
tb.SelectionStart = _findHelper.SelectedPosition;
|
||||
tb.SelectionLength = _findHelper.FindTextLength;
|
||||
_findHelper.SelectedPosition += _findHelper.ReplaceText.Length;
|
||||
if (_findHelper.FindReplaceType.FindType == FindType.RegEx)
|
||||
{
|
||||
_findHelper.SelectedPosition += _findHelper.FindTextLength;
|
||||
}
|
||||
else
|
||||
{
|
||||
_findHelper.SelectedPosition += _findHelper.ReplaceText.Length;
|
||||
}
|
||||
ShowStatus(string.Format(msg + _language.XFoundAtLineNumberY, _findHelper.FindText, _findHelper.SelectedIndex + 1));
|
||||
}
|
||||
else
|
||||
@ -5203,10 +5210,12 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
if (_findHelper.FindReplaceType.FindType == FindType.RegEx)
|
||||
{
|
||||
ReplaceViaRegularExpression(tb);
|
||||
_findHelper.SelectedPosition += _findHelper.FindTextLength;
|
||||
}
|
||||
else
|
||||
{
|
||||
tb.SelectedText = _findHelper.ReplaceText;
|
||||
_findHelper.SelectedPosition += _findHelper.ReplaceText.Length;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user