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 229917 - Wrong interaction between code completion and block selection
Summary: Wrong interaction between code completion and block selection
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-17 13:40 UTC by Jiri Prox
Modified: 2013-07-01 15:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
fix (6.04 KB, patch)
2013-06-13 13:17 UTC, Milutin Kristofic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2013-05-17 13:40:55 UTC
There is wrong interaction between code completion and block selection, which places cursor at unexpected places.

Steps to reproduce:
1) have a line of code:
        File f= new File("aaa");
        
2) turn on block selection
3) put cursor at the next line (properly indented)
4) type 
        FileR

5) press ctrl-space to open code completion and select FileReader
6) now press space 
-> space is inserted behind FileR not at the position where is the cursor!


Product Version: NetBeans IDE 7.3 (Build 201305162200)
Java: 1.6.0_45; Java HotSpot(TM) Client VM 20.45-b01
Runtime: Java(TM) SE Runtime Environment 1.6.0_45-b06
System: Windows 7 version 6.1 running on x86; Cp1250; cs_CZ (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\7.3
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\7.3
Comment 1 Dusan Balek 2013-05-21 12:16:16 UTC
Seems like a problem of rectangular selection and not code completion (similar result can be achieved using e.g. Fix Imports action and others). Reassigning to editor for further evaluation.
Comment 2 Milutin Kristofic 2013-06-13 13:17:44 UTC
Created attachment 135751 [details]
fix

It will be fix after beta branching.
Comment 3 Milutin Kristofic 2013-06-25 12:00:22 UTC
http://hg.netbeans.org/jet-main/rev/4d12fe0e1d2b
Comment 4 Quality Engineering 2013-07-01 15:58:07 UTC
Integrated into 'main-silver', will be available in build *201307011244* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4d12fe0e1d2b
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #229917 - Wrong interaction between code completion and block selection