Change interpretation of marked_text and edit when handling input

Co-authored-by: Antonio Scandurra <antonio@zed.dev
This commit is contained in:
Max Brunsfeld 2022-07-20 09:53:49 -07:00
parent 42ac4bf9fc
commit 1b0e93b153
2 changed files with 9 additions and 3 deletions

View file

@ -92,7 +92,7 @@ pub trait Dispatcher: Send + Sync {
pub trait InputHandler {
fn select(&mut self, range: Range<usize>);
fn selected_range(&self) -> Option<Range<usize>>;
fn edit(&mut self, replacement_range: Option<Range<usize>>, text: &str) -> bool;
fn edit(&mut self, replacement_range: Option<Range<usize>>, text: &str);
fn compose(
&mut self,
marked_text: &str,