You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just printed out a few hundred pages of Rust documentation (eg, manual, tutorial, guides). I'm quite impressed, in general, but I was a bit annoyed by the fact that the horizontal margins are too small to allow safe punching for 3-ring binders.
Please consider adding about 0.25" to the inner margin of the printed CSS format throughout the Rust documentation offerings. If need be, the point size could be reduced a bit so that the total amount of paper remains the same.
-r
The text was updated successfully, but these errors were encountered:
fix: handle character boundaries for wide chars in extend_selection
fixrust-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.
I just printed out a few hundred pages of Rust documentation (eg, manual, tutorial, guides). I'm quite impressed, in general, but I was a bit annoyed by the fact that the horizontal margins are too small to allow safe punching for 3-ring binders.
Please consider adding about 0.25" to the inner margin of the printed CSS format throughout the Rust documentation offerings. If need be, the point size could be reduced a bit so that the total amount of paper remains the same.
-r
The text was updated successfully, but these errors were encountered: