This is an automated email from the ASF dual-hosted git repository.

shanedell pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git


The following commit(s) were added to refs/heads/main by this push:
     new 1f2e6b6  Data Editor: Don't Force Replace Operation with Invalid Input
1f2e6b6 is described below

commit 1f2e6b6e8e22af533a1b92df381fc3938432b2f4
Author: Jeremy Yao <[email protected]>
AuthorDate: Thu Nov 20 09:38:22 2025 -0500

    Data Editor: Don't Force Replace Operation with Invalid Input
    
    Closes #1522
---
 src/svelte/src/components/Header/fieldsets/SearchReplace.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/svelte/src/components/Header/fieldsets/SearchReplace.svelte 
b/src/svelte/src/components/Header/fieldsets/SearchReplace.svelte
index 1b0d43b..5d529f7 100644
--- a/src/svelte/src/components/Header/fieldsets/SearchReplace.svelte
+++ b/src/svelte/src/components/Header/fieldsets/SearchReplace.svelte
@@ -137,7 +137,7 @@ limitations under the License.
   }
 
   function replaceStart() {
-    if (replaceable && !replaceErr) {
+    if (replaceable && !replaceErrDisplay) {
       matchOffset = -1
       replaceStarted = true
       searchStarted = false
@@ -403,7 +403,7 @@ limitations under the License.
           <Button
             fn={replace}
             description="Replace the current match"
-            disabledBy={!replaceable}
+            disabledBy={!replaceable || replaceErrDisplay}
           >
             <span slot="left" class="btn-icon material-symbols-outlined"
               >find_replace</span

Reply via email to