Add select by word and double/triple click actions

This commit is contained in:
Jeremy Soller 2023-12-12 10:29:14 -07:00
parent 6566350276
commit 94e6cdefda
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
3 changed files with 87 additions and 8 deletions

View file

@ -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();