Summary: | [terminal] "Copy" is disabled when an entire line is selected | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Tools] Target Management | Reporter: | Martin Oberhuber <mober.at+eclipse> | ||||||||||
Component: | Terminal | Assignee: | Martin Oberhuber <mober.at+eclipse> | ||||||||||
Status: | RESOLVED FIXED | QA Contact: | Martin Oberhuber <mober.at+eclipse> | ||||||||||
Severity: | normal | ||||||||||||
Priority: | P3 | CC: | aleherb+eclipse, creynaud, eclipse, wb-rel | ||||||||||
Version: | 3.0 | Keywords: | bugday, helpwanted | ||||||||||
Target Milestone: | 3.2.1 | ||||||||||||
Hardware: | PC | ||||||||||||
OS: | Windows XP | ||||||||||||
Whiteboard: | |||||||||||||
Bug Depends on: | |||||||||||||
Bug Blocks: | 323166 | ||||||||||||
Attachments: |
|
Description
Martin Oberhuber
2008-02-20 08:43:13 EST
Although there is an easy workaround, I find this annoying and confusing. Might be a really nice bugday bug for somebody to step up and fix. Created attachment 146616 [details]
Copy disabled in the context though selection is not empty
"Copy" is also disabled in the context menu when user drags the selection from the end of the line to the start of the line and releases the mouse button out of the Terminal view text canvas. See attached screenshots. Created attachment 146617 [details]
Mouse released out of the Terminal view
Forgot to add some information about my configuration, so here it is: Eclipse Version: 3.5.0 Build id: I20090611-1540 Target Management Terminal Widget Version: 3.0.0.v200905272300-4--7w311A16383411 Build id: 3.1 (20090617-1400) Debian Linux CQ:WIND00192310 Created attachment 173743 [details]
Proposed fix
When dragging outside the widget, the selection bounds become negative which is treated as "no selection" in AbstractTextCanvasModel.
This patch makes sure the drag end coordinates are non-negative when setting the selection bounds.
Hm... as explained in comment 0, I have seen the issue also when dragging _inside_ the widget but down 1 line. Is that case addressed as well? (In reply to comment #8) > Hm... as explained in comment 0, I have seen the issue also when dragging > _inside_ the widget but down 1 line. Is that case addressed as well? Yes it is, because you need to drag outside the widget to select only the line without the first character of the following line ('h'). But I just found out that the patch makes it impossible to not select the 'h' in this case... Created attachment 173839 [details]
Proposed fix #2
This patch makes sure the selection start coordinates are non-negative and fixes the handling of negative end column in AbstractTextCanvasModel.
ping? Released to 3.2.1 Stream. Comment on attachment 173839 [details]
Proposed fix #2
Forgot adding the iplog+ flag for this.
|