Fix accidental visual selection on scroll

As part of this fix partial page distance calculations to more closely
match vim.
This commit is contained in:
Conrad Irwin 2023-09-01 11:14:27 -06:00
parent 2bf417fa45
commit 6d7949654b
3 changed files with 61 additions and 5 deletions

View file

@ -1654,7 +1654,7 @@ impl Editor {
.excerpt_containing(self.selections.newest_anchor().head(), cx)
}
fn style(&self, cx: &AppContext) -> EditorStyle {
pub fn style(&self, cx: &AppContext) -> EditorStyle {
build_style(
settings::get::<ThemeSettings>(cx),
self.get_field_editor_theme.as_deref(),