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.
Using of CC when having carret placed right before a word can result in replacing the word. Steps to reproduce: -------------------- 1) Open an xml file 2) Place carret in front of a word (ie. |foo, not in fron of a tag) 3) Invoke CC and choose for example ", > --> The 'foo' word gets replaced by the selected item. [200509070103, JDK 1.5.0_05, solaris 10 /sparc]
Maybe this is somehow related to issue #59329 ?
> Maybe this is somehow related to issue #59329 ? IMO not.
This happens because of the CC considers the text above & as a reference so it replaces it with the newly selected one. It is not a bug it is a feature :-). Yes, you are right, it bad to replace the entire text - I will fix it.
fixed. The CC now recognizes the content of the text right to the cursor and if it is not a reference entity it doesn't replace it otherwise deletes the original entity reference by the new one. Checking in xml/text-edit/src/org/netbeans/modules/xml/text/completion/SyntaxQueryHelper.java; /cvs/xml/text-edit/src/org/netbeans/modules/xml/text/completion/SyntaxQueryHelper.java,v <-- SyntaxQueryHelper.java new revision: 1.11; previous revision: 1.10 done
Verified in 200510050426. Thanks for a 'fix of feature' :)
change reverted - it causes issue #93652. The issue is not reproducible even without the fix, so it has likely been fixed by another fix. Checking in SyntaxQueryHelper.java; /cvs/xml/text-edit/src/org/netbeans/modules/xml/text/completion/SyntaxQueryHelper.java,v <-- SyntaxQueryHelper.java new revision: 1.17; previous revision: 1.16 done
It works as expected. Thanks.