Fixed: Replace: bug in "Prompt on replace" behaviour

Bug reports concerning HxD.
Post Reply
Surveyor
Posts: 2
Joined: 15 Oct 2012 07:41

Fixed: Replace: bug in "Prompt on replace" behaviour

Post by Surveyor »

Maël,

"Replace all" works as expected:
  • if no "Prompt on replace", all occurrences are replaced
  • if "Prompt on replace" checked, all occurrences must be confirmed; routine keeps going until done or Cancel
However, if OK is clicked (instead of Replace all), behaviour is as follows:
  • "Prompt on replace" is not checked - single replacement done (assuming it is found) - expected behaviour
  • "Prompt on replace" is checked - identical behaviour to user clicking "Replace all" - routine keeps asking to replace next find, etc. even if No clicked in prompt dialog.
I would expect that if OK button was clicked, only a single replacement should be done, regardless of status of "Prompt on replace", and if Prompt/No is clicked, the routine should end. Is that a fair expectation of how it should work?

- Surveyor
Maël
Site Admin
Posts: 1455
Joined: 12 Mar 2005 14:15

Re: Replace: bug in "Prompt on replace" behaviour

Post by Maël »

I agree. Pressing OK when "prompt on replace" is checked really should only replace at most one occurrence (one if "yes" is pressed, none if "no" or "cancel" is pressed or nothing is found). However, if "all" is pressed in the confirmation dialog, all following occurrences are replaced without any further confirmation.

Changed accordingly, in the newest version.

https://mh-nexus.de/downloads/HxDSetup.zip
Post Reply