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.
Keyboardhandler is broken for up/down keys (cursor) since build 201003240200. Also some other exceptions for the text component (AssertionError: Null textComponent). Seems that someone with their last commits has broken the editor?
*** Bug 182654 has been marked as a duplicate of this bug. ***
+ Ctrl+E removes not the current, but previous line
I´ve the same problem! My Cursor-UP/Down works very strange: -) Cursor-UP: When I press Cursor-Up, the cursor jumps to the third line up. example: Cursor is at line 15, then I press Cursor-UP and then the Cursor is at Line 12 -) Cursor-Down: When I press Cursor-Down, the Cursor jumps at the previous line (this should Cursor-Up do). Tested at Build 201003240200. Restarting the IDE doesn´t help.
Same problem. Windows 7 x64
Aye, got this problem too, 03230200 seems to work as it should...
*** Bug 182681 has been marked as a duplicate of this bug. ***
A rounding bug: the new views (which paint the lines in the editor) use doubles for layout, but JTextComponent.modelToView only uses integers. Truncation of the doubles to integers causes the problems for the Up/Down. This should fix Up/Down, End and Ctrl-E (+I tried to test simple navigation actions, and they seem to work OK): http://hg.netbeans.org/jet-main/rev/c51a4283e032 Please let me know if there is some other action broken. Thanks.
*** Bug 182684 has been marked as a duplicate of this bug. ***
Workaround: -J-Dorg.netbeans.editor.linewrap.disable=true makes the editor work normally. I think vstejskal's d21f93e873b9 was premature, as there are several very visible bugs in linewrap mode.
Integrated into 'main-golden', will be available in build *201003250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c51a4283e032 User: Jan Lahoda <jlahoda@netbeans.org> Log: #182648: fixing up/down, and end actions. JTextComponent modelToView truncates the precise double results - using precise double values by direct access to views.
*** Bug 182700 has been marked as a duplicate of this bug. ***
While the behavior is better than last week, it still does not work for me. build: NetBeans IDE Dev (Build 201003290201) hg ID: 1cf56aeaf085 system: Ubuntu 9.04
I have fixed the code to round up the default line height computation to one decimal place which should not affect layout in any visible way but which could help to eliminate this problem. I leave the issue open until we verify that the problem is fixed. http://hg.netbeans.org/jet-main/rev/d2bc552c51ed
Fixed EditorUI.textLeftMarginWidth to zero value as pointed out by jlahoda in order to let methods in editor's Utilities properly traverse between lines boundaries. http://hg.netbeans.org/jet-main/rev/e84ab2f4a661
*** Bug 183227 has been marked as a duplicate of this bug. ***
*** Bug 183119 has been marked as a duplicate of this bug. ***
Unfortunately, it seems that the above fixes are still not enough. Will need to investigate further.
Bypassing a conversion from double to float: http://hg.netbeans.org/jet-main/rev/1c72d1c2f537
Rounding bounds-related computations to 1/8 of pixel. Also renamed defaultBaselineOffset -> defaultAscent. http://hg.netbeans.org/jet-main/rev/71f839ae7563
Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d2bc552c51ed User: Miloslav Metelka <mmetelka@netbeans.org> Log: #182648 - Keyboard cursor keys broken (up/down) - rounding default line height up to one decimal place.
I think this should be fixed now (after 71f839ae7563). Please verify and if it is still there please reopen.
It is fixed for me. I do not know if it is relevant but if multiple lines are selected then one pixel white line is draw in between each selected line. See attached screenshot.
Created attachment 96823 [details] screenshot
Also icon for libe breaking (in editor gutter) is slightly misplaced - it is about 5 pixels too high. Tested on: Product Version = NetBeans IDE Dev (Build 100407-2b6de6b17c30) Operating System = Linux version 2.6.24-24-generic running on i386 Java; VM; Vendor = 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01;
(In reply to comment #24) > Also icon for libe breaking (in editor gutter) is slightly misplaced issue #183536