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 130414 - Delete lines with selected text on "Delete line"
Summary: Delete lines with selected text on "Delete line"
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Max Sauer
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2008-03-18 15:35 UTC by deniss
Modified: 2008-04-01 13:56 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description deniss 2008-03-18 15:35:26 UTC
May be a little personal issue but I think that "Delete line" action should delete all lines with selected multiline
text. In the current behaviour editor delete only line with the cursor. 

Use case - Deleting big text parts:
 - selecting text with the mouse(right hand, left hand on the keyboard)
 - want to delete this text -> need to press delete button -> need to remove hand from the mouse -> will be better to
delete text with Ctrl-E

IDEA have the same behaviour as NetBeans
Eclipse do it in my way
Comment 1 Max Sauer 2008-03-19 08:47:31 UTC
This is rather an ENHANCEMENT. I'll look at it.

Comment 2 Max Sauer 2008-03-20 17:23:42 UTC
Fixed. Let me know if it behaves well, thanks.
---
http://hg.netbeans.org/main/rev/bde02f509d1e

Comment 3 deniss 2008-03-21 17:05:09 UTC
It works very well. Thanks!
Comment 4 Miloslav Metelka 2008-04-01 13:56:47 UTC
The fix would not apply if the selection would be created by going backwards. I have improved that.

http://hg.netbeans.org/main?cmd=changeset;node=d3e850f831d6