Make Edit::copy_selection immutable

This commit is contained in:
Héctor Ramón Jiménez 2023-09-16 15:57:41 +02:00
parent 1eab951e27
commit 6235716beb
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 4 additions and 4 deletions

View file

@ -115,7 +115,7 @@ pub trait Edit {
fn shape_as_needed(&mut self, font_system: &mut FontSystem);
/// Copy selection
fn copy_selection(&mut self) -> Option<String>;
fn copy_selection(&self) -> Option<String>;
/// Delete selection, adjusting cursor and returning true if there was a selection
// Also used by backspace, delete, insert, and enter when there is a selection