Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions graphics/src/text/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,13 @@ impl editor::Editor for Editor {

internal.editor.shape_as_needed(font_system.raw(), false);

// The line layouts changed, so any cached selection is stale.
let _ = internal
.selection
.write()
.expect("Write to cursor cache")
.take();

self.0 = Some(Arc::new(internal));
}

Expand Down