mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 01:21:47 +03:00
Fix line with invisibles positioning (#12211)
Release Notes: - fixed positioning of whitespace dots on multibyte text ([#10332](https://github.com/zed-industries/zed/issues/10332)).
This commit is contained in:
parent
951fbc57ba
commit
9c35187aac
@ -3903,10 +3903,10 @@ impl LineWithInvisibles {
|
||||
} else {
|
||||
invisibles.extend(
|
||||
line_chunk
|
||||
.chars()
|
||||
.bytes()
|
||||
.enumerate()
|
||||
.filter(|(_, line_char)| {
|
||||
let is_whitespace = line_char.is_whitespace();
|
||||
let is_whitespace = (*line_char as char).is_whitespace();
|
||||
non_whitespace_added |= !is_whitespace;
|
||||
is_whitespace
|
||||
&& (non_whitespace_added || !inside_wrapped_string)
|
||||
|
Loading…
Reference in New Issue
Block a user