Add select by word and double/triple click actions
This commit is contained in:
parent
6566350276
commit
94e6cdefda
3 changed files with 87 additions and 8 deletions
|
|
@ -413,7 +413,7 @@ impl<'a> Edit for ViEditor<'a> {
|
|||
editor.insert_string(data, None);
|
||||
} else {
|
||||
match selection {
|
||||
Selection::Normal(_) | Selection::None => {
|
||||
Selection::None | Selection::Normal(_) | Selection::Word(_) => {
|
||||
let mut cursor = editor.cursor();
|
||||
if after {
|
||||
let buffer = editor.buffer();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue