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 270949

Summary: Preserve cursor column when moving with Control key
Product: editor Reporter: pols12
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description pols12 2017-06-23 15:44:02 UTC
First issue:

Place your cursor to n-th column of the line.
Move your cursor to m-th (m ≠ n) column of the line using arrow keys (left or right).
Press Up arrow key: your cursor columns is still m-th.

Place your cursor to n-th column of the line.
Move your cursor to m-th (m ≠ n) column of the line using Control + arrow keys (left or right).
Press Up arrow key...

Expected: your cursor columns is still m-th (like without Control).

Actual: your cursor column is n-th.



Second issue (with a two lines, first is bigger):

Place your cursor to n-th column of the first line (n higher than second line size).
Move your cursor to m-th column (m higher than second line size too).
Press Down arrow key: you’re at the end of second line.
Press Up arrow key:
-if you had moved your cursor without Control key, you’re at m-th column.
-if you had moved your cursor using Control key, you’re at n-th column.