#3727 undo after replace all with beanshell only first occurance

closed-fixed
None
5
2012-09-05
2012-07-30
No

Undo after search and replace with beanshell replacement fails. Reverts only first occurance.

1. launch jedit r21961 on Win 7, java 6, with -nosettings -noplugins
2. type abcdef
3. enter search and replace dialog:
search for: [a-z]
replace with: _0.toUpperCase()
switch on regexp and beanshell snippet
4. replace all
5. close dialog
6. notice ABCDEF, great
7. undo makes it aBCDEF, while should make it abcdef

Discussion

  • Thomas Meyer

    Thomas Meyer - 2012-08-10

    It's a bug in the compression of Replace Edits. Attached patch fixes the error.

     
  • Alan Ezust

    Alan Ezust - 2012-09-05

    Committed 22165

     
  • Alan Ezust

    Alan Ezust - 2012-09-05
    • assigned_to: nobody --> thomasmey
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks