Skip to content

Minor grammar fixes. #17420

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

Merged
merged 1 commit into from
Sep 21, 2014
Merged

Minor grammar fixes. #17420

merged 1 commit into from
Sep 21, 2014

Conversation

colrdavidson
Copy link
Contributor

Fix grammar (double "note") in situations like:

src/reader/events.rs:120:5: 120:25 note: note conflicting type here
src/reader/events.rs:120 Error(common::Error)

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

bors added a commit that referenced this pull request Sep 21, 2014
Fix grammar (double "note") in situations like:

src/reader/events.rs:120:5: 120:25 **note: note** conflicting type here
src/reader/events.rs:120     Error(common::Error)
@bors bors closed this Sep 21, 2014
@bors bors merged commit 88b98a0 into rust-lang:master Sep 21, 2014
lnicola pushed a commit to lnicola/rust that referenced this pull request Jun 23, 2024
fix: handle character boundaries for wide chars in extend_selection

fix rust-lang#17420.

When calling 'extend_selection' within a string, r-a attempts to locate the current word at the cursor. This is done by finding the first char before the cursor which is not a letter, digit, or underscore.

The position of this character is referred to as `start_idx`, and the word is considered to start from `start_idx + 1`. However, for wide characters, `start_idx + 1` is not character boundaries, which leading to panic. We should use `ceil_char_boundary` to ensure that the idx is always on character boundaries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants