Find and Replace: confirming with a field of the wrong type runs no action

ui.dialog.confirm used to read a replace that is not a string as empty text, so Replace All could delete every match, and a switch that is not true or false as off. It now returns the error, which shows under the match found, and runs nothing; the match stays for Replace once the field is set right.
This commit is contained in:
dotCooCoo
2026-11-17 22:36:13 -08:00
parent d4b1ff8f60
commit 2275ca2fe0
5 changed files with 58 additions and 15 deletions
+2 -1
View File
@@ -9997,7 +9997,8 @@ search while the dialog is closed, and opens the dialog when there has been none
document is not used in another, nor once the Find text or an option that decides a match changes: the search then
starts again as it does without `from`. `ui.paramDialog` opens
the dialog on the last search, with the fields its `params` give in its place. A null field gives none, and a field of
the wrong type is an error that leaves the dialog closed.
the wrong type is an error that leaves the dialog closed. Once it is open, `ui.dialog.confirm` with a field of the
wrong type runs no action and returns the error.
## Justification options