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.
Hy, BaseCaret doesn't use the CARET_COLOR_OVERWRITE_MODE value anymore, it uses CARET_COLOR_INSERT_MODE for insert *and* overwrite. This seems to be a regression starting revision 84624 : d8ca6bd84a75 ( http://hg.netbeans.org/main/diff/d8ca6bd84a75/editor.lib/src/org/netbeans/editor/BaseCaret.java ). See the attached patch which fixes the problem. PS: I don't take credit for this patch, I'm just posting it here. It's done by Andreea Pitici, a work colleague of mine from Joseki Bold.
Created attachment 74807 [details] Use CARET_COLOR_OVERWRITE_MODE in BaseCaret
Thanks for the patch. However there must be a visual setting added into the tools->options as well (currently there's just 'Caret color').
Indeed I guess there should also something in Tools->Options. But that doesn't keep the bug from happening when CARET_COLOR_OVERWRITE_MODE is changed programatically. This is how we found the bug actually.
Miloslav Metelka agreed that he would review and integrate a patch for this issue contributed by the NetFIX [1] team. [1] http://wiki.netbeans.org/NetFIX
dd9f35712718 - applied the patch and added 'Caret Color (Overwrite mode)' among Tools-Options -> Fonts & Colors -> Highlights. Thanks for the patch
Integrated into 'main-golden', will be available in build *200910140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/dd9f35712718 User: Vita Stejskal <vstejskal@netbeans.org> Log: #155143: Adding 'Caret Color (Overwrite mode)' setting and fixing BaseCaret to use it (thanks to Emilian Bold and Andreea Pitici)