This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[NetBeans 200512111900; WinXP; JDK 1.6.0-b61] Issue Summary: -------------- Caret moves back to the first line when pressing the down key on last line in editor. You need to be on second or consequent column, it works fine on first column (caret stops). Steps to Reproduce: ------------------- 1. Create a new class, e.g. public class Main { | } 2. Go to place designated by |. 3. Press down arrow twice. -> The caret goes to the first row on second key press.
It's regression against Beta2.
*** Issue 70311 has been marked as a duplicate of this issue. ***
fixed in [maintrunk] The problem was caused by the fix of the issue #69672 It seems that the best solution for fixing this issue, at the current state of HR, is simple rollback, because there are several places in the editor code that depends on returned null from modelToView. Mila, Roman, could you please review/test this? Thanks. /cvs/editor/libsrc/org/netbeans/lib/editor/view/GapBoxView.java,v <-- GapBoxView.java new revision: 1.15; previous revision: 1.14 RCS file: /cvs/editor/libsrc/org/netbeans/lib/editor/view/GapBoxView.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- GapBoxView.java 11 Dec 2005 11:01:15 -0000 1.14 +++ GapBoxView.java 13 Dec 2005 12:34:32 -0000 1.15 @@ -1484,7 +1484,7 @@ ret = cv.modelToView(pos, ca, b); } else { - ret = new Rectangle(); + ret = null; } return ret;
I agree with the fix. At this stage it's the most reliable solution.
*** Issue 70397 has been marked as a duplicate of this issue. ***
Verified in trunk build 200512131900. I agree with fixing in the release50 branch.
integrated into [release50] /cvs/editor/libsrc/org/netbeans/lib/editor/view/GapBoxView.java,v <-- GapBoxView.java new revision: 1.14.2.1; previous revision: 1.14
*** Issue 70430 has been marked as a duplicate of this issue. ***
Verified in 5.0 200512222030.
Verified also in trunk build 200512221900.