working quote and bracket text objects

This commit is contained in:
K Simmons 2022-10-11 15:17:29 -07:00
parent 0d31ea7cf2
commit 673041d1f5
7 changed files with 237 additions and 37 deletions

View file

@ -51,7 +51,7 @@ pub fn delete_object(vim: &mut Vim, object: Object, around: bool, cx: &mut Mutab
.chars_at(selection.start)
.take_while(|(_, p)| p < &selection.end)
.all(|(char, _)| char == '\n')
|| offset_range.is_empty();
&& !offset_range.is_empty();
let end_at_newline = map
.chars_at(selection.end)
.next()