Yes, I'm working on a new replace method that fixes many of the old issues.
As an ugly workaround, do a editor.endUndoAction() after doing a replace()


On 19 Dec 2013 17:07, "slimeph" <> wrote:
After installing Python Script, undo-ing an action reverts all of the
contents to the previous contents not the undo state.

Steps to reproduce:
1) If the current buffer has text, paste anything.
2) Run the script. Script contents below:
editor.replace("-mail", "mail")
3) Process anything in the current buffer.
4) Press CTRL-Z. Contents will then revert to the the text before the
script ran.

Win 7 Ultimate 64-Bit
Notepad++ 6.4.5 (Unicode)


[Python Script - Undo problem](


Sent from because you indicated interest in <>

To unsubscribe from further messages, please visit <>