Properly refresh hints on editor open

This commit is contained in:
Kirill Bulatov 2023-06-18 15:23:53 +03:00
parent 58343563ba
commit 7ac1885449
4 changed files with 18 additions and 7 deletions

View file

@ -1921,7 +1921,7 @@ impl Element<Editor> for EditorElement {
let em_advance = style.text.em_advance(cx.font_cache());
let overscroll = vec2f(em_width, 0.);
let snapshot = {
editor.set_visible_line_count(size.y() / line_height);
editor.set_visible_line_count(size.y() / line_height, cx);
let editor_width = text_width - gutter_margin - overscroll.x() - em_width;
let wrap_width = match editor.soft_wrap_mode(cx) {