Skip to content

Commit 73e1188

Browse files
committed
debug win failure
1 parent 6b907d1 commit 73e1188

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
24+
os: ["windows-latest"]
2525
rust: ["stable", "1.83"]
2626
flags: ["", "--all-features"]
2727
exclude:

crates/compilers/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ fn replace_source_content<'a>(
915915
let end = (range.end as isize + offset) as usize;
916916

917917
content.splice(start..end, new_value.bytes());
918-
offset += new_value.len() as isize - (end - start) as isize;
918+
offset += new_value.chars().count() as isize - (end - start) as isize;
919919
}
920920

921921
String::from_utf8(content).unwrap()

0 commit comments

Comments
 (0)