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 209945 - Ctrl-Shift-Up/Down does not duplicate line
Summary: Ctrl-Shift-Up/Down does not duplicate line
Status: RESOLVED DUPLICATE of bug 209605
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 7.2
Hardware: Other Linux
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-03-22 15:57 UTC by Jaroslav Tulach
Modified: 2012-03-27 11:30 UTC (History)
1 user (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 Jaroslav Tulach 2012-03-22 15:57:14 UTC
For many releases Ctrl-Shift-Up and Ctrl-Shift-Down could be used to duplicate current line. In build 2012 03 19 this seems to be broken - rather it jumps up or down with some unpredictable logic.
Comment 1 Svata Dedic 2012-03-23 13:23:38 UTC
Seems OK on build from 2012-03-23; do you use a standard keymap ?
Comment 2 Jaroslav Tulach 2012-03-26 19:19:03 UTC
Clean full build on Mar 26, changeset 85d5b6026ea2. Clean user directory.

If I create empty .txt file and put there

1
2
3

position cursor on 2 and press Ctrl-Shift-Down then the result is

1
3
2

it should be

1
2
2
3
Comment 3 Michel Graciano 2012-03-26 21:02:01 UTC
Jarda,
probably you are facing a problem that I have talked about at NetCAT mailing list, the Duplicate Up/Down had their shortcut moved to Ctrl + Shift ,/. for a short period and now it is back again. You are firing the new Move code element Up/Down [1] action, which was already assigned for a different shortcut. Probably your repository wasn't merged with main yet? I can't reproduce this problem since last friday with my main build.

I hope it can help you.
[1] http://wiki.netbeans.org/NewAndNoteworthyNB72#Move_Code_Element_Up_and_Down
Comment 4 Jaroslav Tulach 2012-03-26 23:19:38 UTC
Possibly my sources are outdated. If the shortcut was changed for a while, this is very likely the case. It is possible to verify it by running hg log -r 'ancestor(85d5b6026ea2,the_change_set_that_reverted_the_shortcut_back)' if the result is 85d5b6026ea2, then I have outdated sources.
Comment 5 Svata Dedic 2012-03-27 05:13:53 UTC
For the records 

- The change which moved around the key assignments was http://hg.netbeans.org/jet-main/rev/d5099ac46642 (13.3.2012).
- the change which supposedly fixed this defect was http://hg.netbeans.org/jet-main/rev/5d1ee168d3b8 (made on 20.3.2012). 
- this defect is possibly a duplicate of defect #209520

The revision 85d5b6026ea2 did not arrive into jet-main (yet)
Comment 6 Svata Dedic 2012-03-27 05:15:55 UTC
Oops :) I mean dup of defect #209520 ...
Comment 7 Jaroslav Tulach 2012-03-27 11:30:52 UTC
My repository state is just in middle of these changes:

/ergonomics$ hg log -r d5099ac46642
changeset:   215173:d5099ac46642
user:        Dusan Balek <dbalek@netbeans.org>
date:        Tue Mar 13 15:58:56 2012 +0100
summary:     Issue #209520: Provide 'Move Code Element Up/Down' Actions - fixed.

/ergonomics$ hg log -r 5d1ee168d3b8
abort: unknown revision '5d1ee168d3b8'!

*** This bug has been marked as a duplicate of bug 209605 ***