The ToggleComment action seems to not work correctly. I see this in Kojo (which uses RSTA), and also in RText (2.0.4). Here's some sample code to see the problem in RText:
- Code: Select all
// test.java
public class X {
public static void main(String[] main) {
int x = 20;
int y = 30;
}
}
Steps to reproduce problem:
- Go to the end of the x = 20 line. Hit Ctrl+/. The line gets commented out, but an extra '/' character gets introduced at the caret location.
- Ctrl+Z to undo the effects of the previous line. Select both the x=20 and y = 30 lines. Hit Ctrl+/. Both lines get deleted, and an extra '/' character shows up. Hit Ctrl+Z to recover the lines in commented form.
