nordfalk / jsyntaxpane

An updated version of code.google.com/p/jsyntaxpane r096 branch
36 stars 22 forks source link

All Text is removed when clicking on ReplaceAll button while Highlight button is active (Find&Replace dialog) #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start a jsyntaxpane (tested with 0.9.5-b27). For example: 
 java -jar jsyntaxpane-0.9.5-b27.jar jsyntaxpane
2. Type aaa in the text area
3. Press CTRL-H to get the Find&Replace window
4. in the find box type aaa (or anything else)
5. click on the Highlight button
6. in the replace box type xxx (or anything else) and press Replace All 
button
7. all the text in in the JEditorPane disappears. 

What is the expected output? What do you see instead?
I expect to just see the replacements as it happens when the highlight 
button is not pressed

What version of the product are you using? On what operating system?
0.9.5-b27, java 1.6.0_07

Please provide any additional information below.

Original issue reported on code.google.com by elib...@gmail.com on 23 Sep 2009 at 3:19

GoogleCodeExporter commented 9 years ago
this issue is happening also with 0.9.4 and 0.9.5-b11, tested on Linux with jre 
1.6.0_12 
...so I think this is really a bug!

Original comment by elib...@gmail.com on 23 Sep 2009 at 8:06

GoogleCodeExporter commented 9 years ago

Original comment by ayman.al...@gmail.com on 8 Nov 2009 at 12:11

GoogleCodeExporter commented 9 years ago
An NPE is occuring somewhere, but I can't find it yet.  I might just 
automatically
remove highlights while replaceAll is done to avoid the error.

Original comment by ayman.al...@gmail.com on 8 Nov 2009 at 12:17

GoogleCodeExporter commented 9 years ago
This is actually fixed already in latest binary build.  
I just forgot to update the issue.

Original comment by ayman.al...@gmail.com on 19 Nov 2009 at 11:55