You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1775,6 +1775,7 @@ Find in all files but exclude all folders log or logs recursively:
1775
1775
<find-status-scope-allvalue="in entire file"/>
1776
1776
<find-status-scope-backwardvalue="from start-of-file to caret"/>
1777
1777
<find-status-scope-forwardvalue="from caret to end-of-file"/>
1778
+
<find-status-replace-invalid-replace-charsvalue="Replace: can't replace with non-ANSI text in ANSI document"/>
1778
1779
<find-status-invisible-chars-findWhatvalue="Invisible characters in pasted "Find what" or "Replace with" content"/>
1779
1780
<find-status-invisible-chars-findWhat-tipvalue="Warning: Invisible characters in search (or replace) field.
1780
1781
The text pasted into this field includes invisible (maybe line-ending) characters. If you proceed without deleting them, they will be included in the search (or replace) text."/>
@@ -1775,6 +1775,7 @@ Find in all files but exclude all folders log or logs recursively:
1775
1775
<find-status-scope-allvalue="in entire file"/>
1776
1776
<find-status-scope-backwardvalue="from start-of-file to caret"/>
1777
1777
<find-status-scope-forwardvalue="from caret to end-of-file"/>
1778
+
<find-status-replace-invalid-replace-charsvalue="Replace: can't replace with non-ANSI text in ANSI document"/>
1778
1779
<find-status-invisible-chars-findWhatvalue="Invisible characters in pasted "Find what" or "Replace with" content"/>
1779
1780
<find-status-invisible-chars-findWhat-tipvalue="Warning: Invisible characters in search (or replace) field.
1780
1781
The text pasted into this field includes invisible (maybe line-ending) characters. If you proceed without deleting them, they will be included in the search (or replace) text."/>
wstring msg = pNativeSpeaker->getLocalizedStrFromID("find-status-replace-readonly", L"Replace: Cannot replace text. The current document is read only.");
wstring msg = pNativeSpeaker->getLocalizedStrFromID("find-status-replace-invalid-replace-chars", L"Replace: can't replace with non-ANSI text in ANSI document");
wstring msg = pNativeSpeaker->getLocalizedStrFromID("find-status-replaceall-readonly", L"Replace All: Cannot replace text. The current document is read only.");
3277
3305
setStatusbarMessage(msg, FSNotFound);
3278
3306
return0;
3279
3307
}
3280
3308
3281
-
// Turn OFF all the notification of modification (SCN_MODIFIED) for the sake of performance
// If txt2find contains non-ANSI characters and document type is ANSI, search cannot match
3314
+
if (isSearchUnicodeCharOnAnsi(txt2find))
3315
+
{
3316
+
return0;
3317
+
}
3285
3318
3319
+
// If txt2replace contains non-ANSI characters and document type is ANSI, the match cannot be replaced
3320
+
if (isSearchUnicodeCharOnAnsi(txt2replace))
3321
+
{
3322
+
wstring msg = pNativeSpeaker->getLocalizedStrFromID("find-status-replace-invalid-replace-chars", L"Replace: can't replace with non-ANSI text in ANSI document");
0 commit comments