Skip to content

Commit

Permalink
Update version properly when FontSystem changes in text::editor
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 18, 2023
1 parent b5466f4 commit 61ef8f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions graphics/src/text/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@ impl editor::Editor for Editor {
for line in internal.editor.buffer_mut().lines.iter_mut() {
line.reset();
}

internal.version = font_system.version();
internal.topmost_line_changed = Some(0);
}

if new_font != internal.font {
Expand Down

0 comments on commit 61ef8f3

Please sign in to comment.