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 258325

Summary: Inconsistent behavior of Strg+D and Tab when multiple lines selected
Product: editor Reporter: ThomasLandauer
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: Two or three lines selected?

Description ThomasLandauer 2016-03-11 10:38:22 UTC
Created attachment 158827 [details]
Two or three lines selected?

When selecting multiple lines, it's never clear to me if the last line is included or not.

Concrete example: See attached screenshot.

The cursor is blinking in the third line.
* When I press Strg+D (i.e. delete lines) in this situation, all *three* lines are gone (i.e. the third line being obviously included in the selection).
* However, when I press Tab (i.e. indent), only the first *two* lines get indented.

My suggestion:
Decide for either behavior and stick to it ;-)

If you decide for "just the two", then don't do the lightblue highlighting of the third line at all.
If you decide for "all three", then highlight all three lines in darkblue.