Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 575085 - [content assist][block selection] Overwrite mode not honored when Toggle Block Selection is active
Summary: [content assist][block selection] Overwrite mode not honored when Toggle Bloc...
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.17   Edit
Hardware: PC Windows 10
: P3 normal with 1 vote (vote)
Target Milestone: 4.23   Edit
Assignee: Jeff Johnston CLA
QA Contact: Jeff Johnston CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-28 02:49 EDT by Rasika Kulkarni CLA
Modified: 2022-06-24 08:08 EDT (History)
3 users (show)

See Also:


Attachments
Issue Screenshot (144.04 KB, image/png)
2021-07-28 05:27 EDT, Rasika Kulkarni CLA
no flags Details
Issue ScreenShot- Overwrite mode Selection (213.54 KB, image/png)
2021-07-28 05:28 EDT, Rasika Kulkarni CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rasika Kulkarni CLA 2021-07-28 02:49:55 EDT

    
Comment 1 Rasika Kulkarni CLA 2021-07-28 02:54:38 EDT
Please find below steps to replicate the bug.

1. Open the editor.
2. Select Toggle Block selection mode and make sure editor is in overwrite mode.
3. Select multiple lines and place cursor behind the text and start typing.
4. Notice text isn't being overwritten.
5. There are no errors or exceptions logged in the console.

This seems to be working when we are having single line selection.
Comment 2 Rasika Kulkarni CLA 2021-07-28 05:27:32 EDT
Created attachment 286840 [details]
Issue Screenshot
Comment 3 Rasika Kulkarni CLA 2021-07-28 05:28:48 EDT
Created attachment 286841 [details]
Issue ScreenShot- Overwrite mode Selection
Comment 4 Rasika Kulkarni CLA 2021-12-30 04:50:01 EST
Can we get fix for this issue as its been assigned long back
Comment 5 Rasika Kulkarni CLA 2022-04-26 06:56:14 EDT
Can we get an update on the issue as its been raised last year and no updates till date. Please any one look into this on priority.
Comment 6 Rasika Kulkarni CLA 2022-04-26 06:57:00 EDT
Or do we have support for this issue on higher version as we are currently using 
eclipse 4.17
Comment 7 Jeff Johnston CLA 2022-04-26 11:50:29 EDT
Hi Rasika,

Eclipse does not backport fixes and continues to integrate patches into the new releases which are put out every quarter.  That said, I tried the scenario you mention on the latest Eclipse (4.23) and it works as expected.  Please update your Eclipse or download the latest from download.eclipse.org.
Comment 8 Dirk Steinkamp CLA 2022-04-26 12:04:25 EDT
I tried it, too, with an 4.24I-Build, but I can't confirm it's working as expected.
When I have a block selection spanning multiple lines (length 0) and start typing, text only gets inserted, not overwritten.
Comment 9 Jeff Johnston CLA 2022-04-26 15:06:48 EDT
I now see what this bug is asking.

First of all, the block defines where the typing occurs.  It does not extend over the block boundary and alter characters outside of the block though the block will expand as characters are typed.  So a zero-length block will insert characters inside the block and will never overwrite characters outside the block.

That said, when characters are actually selected (non-zero length), the text will be replaced with the typed characters - there is no partial replacement.
Comment 10 Rasika Kulkarni CLA 2022-06-24 08:07:36 EDT
Thanks Jeff Johnston for the clarification. I will close the bug .