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.
2 parents bca0d60 + f8a9c92 commit 409e0acCopy full SHA for 409e0ac
src/tools/rust-analyzer/crates/rust-analyzer/src/cli/progress_report.rs
@@ -79,8 +79,8 @@ impl<'a> ProgressReport<'a> {
79
// Backtrack to the first differing character
80
let mut output = String::new();
81
output += &'\x08'.to_string().repeat(self.text.len() - common_prefix_length);
82
- // Output new suffix
83
- output += &text[common_prefix_length..text.len()];
+ // Output new suffix, using chars() iter to ensure unicode compatibility
+ output.extend(text.chars().skip(common_prefix_length));
84
85
// If the new text is shorter than the old one: delete overlapping characters
86
if let Some(overlap_count) = self.text.len().checked_sub(text.len()) {
0 commit comments