Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection garbage when line has String literal #4404

Closed
scheglov opened this issue Aug 7, 2012 · 2 comments
Closed

Selection garbage when line has String literal #4404

scheglov opened this issue Aug 7, 2012 · 2 comments
Assignees
Labels
closed-duplicate Closed in favor of an existing report
Milestone

Comments

@scheglov
Copy link
Contributor

scheglov commented Aug 7, 2012

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)

@danrubel
Copy link

Set owner to @stevemessick.
Added Triaged label.

@stevemessick
Copy link
Contributor

Added Duplicate label.
Marked as being merged into #2268.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

3 participants