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 - Inconsistent behavior of Strg+D and Tab when multiple lines selected
Summary: Inconsistent behavior of Strg+D and Tab when multiple lines selected
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-11 10:38 UTC by ThomasLandauer
Modified: 2016-03-11 10:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Two or three lines selected? (2.59 KB, image/png)
2016-03-11 10:38 UTC, ThomasLandauer
Details

Note You need to log in before you can comment on or make changes to this bug.
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.