Skip to content

Selection garbage when line has String literal #4404

Closed
@scheglov

Description

@scheglov

Most probably because of code highlighting, in result more characters are highlighted as selected and selection removing does not work correctly. May be TextLayout.translateOffset() called from org.eclipse.swt.graphics.TextLayout.draw(GC, int, int, int, int, Color, Color, int) at line 459.

Happens only if line has String literal.

See screenshot.
Place caret on beginning of the line with "var a", press Shift, press ArrowRight several times, press ArrowLeft couple times, see what happens. But on line "b" it is OK.


Attachment:
[Screen shot 2012-08-07 at 2.49.33 PM.png](https://storage.googleapis.com/google-code-attachments/dart/issue-4404/comment-0/Screen shot 2012-08-07 at 2.49.33 PM.png) (12.59 KB)

Metadata

Metadata

Assignees

Labels

closed-duplicateClosed in favor of an existing report

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions