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.

Bug 184134 - [69cat] arrow UP works incorrectly over empty lines
Summary: [69cat] arrow UP works incorrectly over empty lines
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: REGRESSION
: 184236 184280 184592 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-14 11:37 UTC by Vladimir Voskresensky
Modified: 2010-04-23 06:27 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2010-04-14 11:37:38 UTC
When I have code:
1    void foo() {
2    }
3
4    void boo() {
5    }

and line 3 is empty => moving from 1 to 5 stops on each line, but moving from 5 to 1 skips line 3
This is especially the problem when trying to select empty line and suddenly jumps to line 2 from line 4

if there are several empty lines one after another => very strange jumping of cursor as well
Comment 1 Michel Graciano 2010-04-14 13:19:02 UTC
Maybe my issue #184145 is related to this.
Comment 2 Vitezslav Stejskal 2010-04-15 11:08:37 UTC
*** Bug 184236 has been marked as a duplicate of this bug. ***
Comment 3 Vitezslav Stejskal 2010-04-16 11:21:28 UTC
*** Bug 184280 has been marked as a duplicate of this bug. ***
Comment 4 Vladimir Voskresensky 2010-04-19 14:48:44 UTC
Vita, disabling linewrap doesn't help in todays build :-(
Empty lines are skipped and from the first line with UP cursor moves on the last line of document
Comment 5 Vitezslav Stejskal 2010-04-19 21:13:58 UTC
True, most likely a regression caused by fixing issue #183303 with http://hg.netbeans.org/main/rev/ccc0036d719c. I'll have a closer look.
Comment 6 Vitezslav Stejskal 2010-04-22 10:01:15 UTC
http://hg.netbeans.org/jet-main/rev/959e8eae555f

I reverted o.n.e.BaseKit and o.n.e.Utilities changes done in #ccc0036d719c, which fixes the move-up action in current trunk builds (linewrap=false by default). This change (#959e8eae555f) does not seem to adversely affect the fix for issue #183303 - eg. I tested caret navigation over empty lines, beginning/end of a document, around code folds with linewrap=true as well and all seems to work as expected. Therefore I'm leaving #183303 closed.
Comment 7 Quality Engineering 2010-04-23 04:32:56 UTC
Integrated into 'main-golden', will be available in build *201004230200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/959e8eae555f
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #184134: arrow UP works incorrectly over empty lines; reverting o.n.e.BaseKit and o.n.e.Utilities changes done in ccc0036d719c
Comment 8 Vitezslav Stejskal 2010-04-23 06:27:42 UTC
*** Bug 184592 has been marked as a duplicate of this bug. ***