mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 02:57:34 +00:00
Avoid having carriage returns (\r) in inlays
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
parent
d2fef07782
commit
e744fb8842
1 changed files with 1 additions and 0 deletions
|
@ -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!(
|
||||
|
|
Loading…
Reference in a new issue