Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 411267

Summary: Selection does not work with block cursor visible (vi and overwrite mode)
Product: [ECD] Orion Reporter: Silenio Quarti <Silenio_Quarti>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gheorghe, simon_kaegi
Version: 3.0Flags: gheorghe: review+
simon_kaegi: review+
Target Milestone: 3.0 RC3   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
fix none

Description Silenio Quarti CLA 2013-06-20 10:52:49 EDT
1) Open the editor
2) Select some text
3) Type INSERT type to change to overwrite mode

Note that the browser selection is gone (the text is colored (not white)).
Comment 1 Silenio Quarti CLA 2013-06-20 10:55:23 EDT
Created attachment 232600 [details]
fix

The problem happens on FF only because it does not copy the range used to set the selection.  The range changes after the selection is set.  The fix is to stop reusing the range object.