Steps to replicate the issue (include links if applicable):
- Run pwb.py replace "^" "a" -regex -summary:test on a sandbox page in interactive mode.
- When asked Do you want to accept these changes?, reply m for [m]ore context.
What happens?:
The replacement (i.e., prepending "a" to the page text) is done again before showing more context.
>>> Wikipedie:Pískoviště <<<
@@ -1 +1 @@
- {{Tento řádek neměňte}}
+ a{{Tento řádek neměňte}}
Do you want to accept these changes? ([y]es, [N]o, [e]dit original, edit
[l]atest, open in [b]rowser, [m]ore context, [a]ll, [q]uit): m
@@ -1,4 +1,4 @@
- {{Tento řádek neměňte}}
+ aa{{Tento řádek neměňte}}
<!-- ************ Prosíme, NEMĚŇTE nic nad tímto řádkem. Díky. ************ -->
== Bábovičky ==
Do you want to accept these changes? ([y]es, [N]o, [e]dit original, edit
[l]atest, open in [b]rowser, [m]ore context, [a]ll, [q]uit):What should have happened instead?:
No other changes are made.
Software version:
Pywikibot: [ssh] pywikibot-core.git (c5beb1d, g18595, 2024/04/19, 17:24:33, master)
Release version: 9.1.0.dev0
packaging version: 21.3
mwparserfromhell version: 0.6.5
wikitextparser version: n/a
requests version: 2.31.0
cacerts: [redacted]
certificate test: ok
Python: 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)]