Avoid having carriage returns (\r) in inlays
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
co-authored by
Antonio Scandurra
parent
d2fef07782
commit
e744fb8842
@@ -472,6 +472,7 @@ impl InlayMap {
|
||||
let bias = if rng.gen() { Bias::Left } else { Bias::Right };
|
||||
let len = rng.gen_range(1..=5);
|
||||
let text = util::RandomCharIter::new(&mut *rng)
|
||||
.filter(|ch| *ch != '\r')
|
||||
.take(len)
|
||||
.collect::<String>();
|
||||
log::info!(
|
||||
|
||||
Reference in New Issue
Block a user