chiark / gitweb /
Fix rendering glitch when ExtensibleIndicator vanishes.
authorSimon Tatham <anakin@pobox.com>
Fri, 5 Jan 2024 06:29:57 +0000 (06:29 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 5 Jan 2024 06:30:38 +0000 (06:30 +0000)
We'd end up drawing three fewer lines of the top of the revised file
than would have fitted on the screen.

src/file.rs

index d664605a0f71668cb060d1116430d3d512fd0c2c..f0beffa6b26105b9bc55bcfd28ef354f43cc9e72 100644 (file)
@@ -537,6 +537,7 @@ impl<Type: FileType, Source: FileDataSource> File<Type, Source> {
                 }
 
                 self.contents.update_items(client);
+                self.fix_overshoot_at_top(); // in case the extender vanished
                 Ok(())
             }
             Err(e) => Err(e),