@@ -53,6 +53,8 @@ fn find_word_boundary(slice: RopeSlice, mut pos: usize, direction: Direction, lo
5353pub enum TextObject {
5454 Around,
5555 Inside,
56+ /// Used for moving between objects.
57+ Movement,
5658}
5759
5860impl Display for TextObject {
@@ -60,6 +62,7 @@ impl Display for TextObject {
6062 f.write_str(match self {
6163 Self::Around => "around",
6264 Self::Inside => "inside",
65+ Self::Movement => "movement",
6366 })
6467 }
6568}
@@ -104,6 +107,7 @@ pub fn textobject_word(
104107 Range::new(word_start - whitespace_count_left, word_end)
105108 }
106109 }
110+ TextObject::Movement => unreachable!(),
107111 }
108112}
109113
@@ -118,6 +122,7 @@ pub fn textobject_surround(
118122 .map(|(anchor, head)| match textobject {
119123 TextObject::Inside => Range::new(next_grapheme_boundary(slice, anchor), head),
120124 TextObject::Around => Range::new(anchor, next_grapheme_boundary(slice, head)),
125+ TextObject::Movement => unreachable!(),
121126 })
122127 .unwrap_or(range)
123128}