editor: Represent scroll offset with more precision (#39367)

Closes #5355

Release Notes:

- Fixed rendering glitches with files with more than 16 million lines
(that occured due to floating number rounding errors).

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
This commit is contained in:
Piotr Osiewicz
2025-10-02 23:04:31 +02:00
committed by GitHub
co-authored by Smit Barmase
parent 4c35274b6e
commit d359a814f8
61 changed files with 711 additions and 530 deletions
@@ -277,7 +277,7 @@ impl NeovimBackedTestContext {
let window = self.window;
let margin = self
.update_window(window, |_, window, _cx| {
window.viewport_size().height - line_height * visible_line_count
window.viewport_size().height - line_height * (visible_line_count as f32)
})
.unwrap();