Change interpretation of marked_text and edit when handling input
Co-authored-by: Antonio Scandurra <antonio@zed.dev
This commit is contained in:
parent
42ac4bf9fc
commit
1b0e93b153
2 changed files with 9 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue