mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed Replace in Files 'x' with 'xx' case
This commit is contained in:
parent
a70c34050b
commit
e79a3755fd
1 changed files with 2 additions and 2 deletions
|
@ -663,7 +663,7 @@ namespace IDE.ui
|
||||||
//for (int i = 0; i < data.mTextLength - mSearchOptions.mSearchString.Length; i++)
|
//for (int i = 0; i < data.mTextLength - mSearchOptions.mSearchString.Length; i++)
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
while (i < data.mTextLength - mSearchOptions.mSearchString.Length)
|
while (i <= data.mTextLength - mSearchOptions.mSearchString.Length)
|
||||||
{
|
{
|
||||||
if ((isNewStart) || (!mSearchOptions.mMatchWholeWord))
|
if ((isNewStart) || (!mSearchOptions.mMatchWholeWord))
|
||||||
{
|
{
|
||||||
|
@ -710,7 +710,7 @@ namespace IDE.ui
|
||||||
|
|
||||||
editWidgetContent.PhysDeleteSelection(false);
|
editWidgetContent.PhysDeleteSelection(false);
|
||||||
editWidgetContent.PhysInsertAtCursor(mSearchOptions.mReplaceString, false);
|
editWidgetContent.PhysInsertAtCursor(mSearchOptions.mReplaceString, false);
|
||||||
i += mSearchOptions.mSearchString.Length - 1;
|
i += mSearchOptions.mReplaceString.Length - 1;
|
||||||
replaceCount++;
|
replaceCount++;
|
||||||
replaceInFileCount++;
|
replaceInFileCount++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue