This repository was archived by the owner on Sep 11, 2023. It is now read-only.
File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -241,12 +241,17 @@ private void ReplaceAll()
241
241
Regex regex = GetSearchRegex ( ) ;
242
242
if ( regex == null ) { return ; }
243
243
244
+ int count = 0 ;
245
+ int fileCount = 0 ;
246
+
244
247
string replaceString = ReplaceBox . Text ;
245
248
foreach ( var editor in editors )
246
249
{
247
250
MatchCollection mc = regex . Matches ( editor . editor . Text ) ;
248
251
if ( mc . Count > 0 )
249
252
{
253
+ fileCount ++ ;
254
+ count += mc . Count ;
250
255
editor . editor . BeginChange ( ) ;
251
256
for ( int j = mc . Count - 1 ; j >= 0 ; -- j )
252
257
{
@@ -257,8 +262,8 @@ private void ReplaceAll()
257
262
editor . NeedsSave = true ;
258
263
}
259
264
}
260
- //FindResultBlock.Text = "Replaced " + count.ToString() + " occurences in " + fileCount.ToString() + " documents";
261
- FindResultBlock . Text = string . Format ( Program . Translations . GetLanguage ( "ReplacedOcc, count, fileCount" ) ) ;
265
+ // FindResultBlock.Text = "Replaced " + count.ToString() + " occurences in " + fileCount.ToString() + " documents";
266
+ FindResultBlock . Text = string . Format ( Program . Translations . GetLanguage ( "ReplacedOcc" ) , count , fileCount ) ;
262
267
}
263
268
264
269
private void Count ( )
You can’t perform that action at this time.
0 commit comments