Allow styling of invalid diagnostics

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-11-19 14:35:00 +01:00
co-authored by Nathan Sobo
parent 8d5e3fb159
commit 2664dad2bc
6 changed files with 52 additions and 29 deletions
+1 -1
View File
@@ -394,7 +394,7 @@ impl<'a> BlockMapWriter<'a> {
let id = BlockId(self.0.next_block_id.fetch_add(1, SeqCst));
ids.push(id);
let position = buffer.anchor_before(block.position);
let position = buffer.anchor_after(block.position);
let point = position.to_point(buffer);
let start_row = wrap_snapshot
.from_point(Point::new(point.row, 0), Bias::Left)