mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 12:38:02 +00:00
Stop at range.end
when computing text summary for range in TabMap
This commit is contained in:
parent
213aa36e1c
commit
b10c82c015
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ impl Snapshot {
|
|||
last_line_chars = first_line_chars;
|
||||
} else {
|
||||
for _ in self
|
||||
.chunks(TabPoint::new(range.end.row(), 0)..self.max_point(), false)
|
||||
.chunks(TabPoint::new(range.end.row(), 0)..range.end, false)
|
||||
.flat_map(|chunk| chunk.text.chars())
|
||||
{
|
||||
last_line_chars += 1;
|
||||
|
|
Loading…
Reference in a new issue