We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a6cb3 commit 8012accCopy full SHA for 8012acc
lib/line-index/src/lib.rs
@@ -161,7 +161,7 @@ impl LineIndex {
161
let mut res: usize = col.into();
162
if let Some(wide_chars) = self.line_wide_chars.get(&line_col.line) {
163
for c in wide_chars.iter() {
164
- if c.end <= col {
+ if u32::from(c.end) <= line_col.col {
165
res -= usize::from(c.len()) - c.wide_len(enc);
166
} else {
167
// From here on, all utf16 characters come *after* the character we are mapping,
0 commit comments