diff --git a/src/caret/motion.rs b/src/caret/motion.rs index e3646bfe92d7ab1b7e508c05d034c44f3f53da41..68ee68adff139813a9a64b552325b1c5a6026a73 100644 --- a/src/caret/motion.rs +++ b/src/caret/motion.rs @@ -78,7 +78,7 @@ impl Editor { let ch = self.get_char(); if let Some(o) = self.next_ocur(ch, n.d()) { - Some((to_signed_pos((o, y)))) + Some(to_signed_pos((o, y))) } else { None } @@ -87,7 +87,7 @@ impl Editor { let ch = self.get_char(); if let Some(o) = self.previous_ocur(ch, n.d()) { - Some((to_signed_pos((o, y)))) + Some(to_signed_pos((o, y))) } else { None }