M cursive/src/views/editor.rs +3 -3
@@ 212,7 212,7 @@ pub struct Builder {
bindings: SequenceTrie<Event, Cmd>,
buf: Option<Buffer>,
- highlighting: Box<dyn Highlighting>,
+ highlighting: Box<dyn Highlighting>
}
impl Builder {
@@ 532,7 532,7 @@ impl View for EditorView {
// skip cursors off screen
if line_idx < self.scrollbase.start_line ||
line_idx > self.scrollbase.start_line + self.scrollbase.view_height
- { continue; }
+ { continue }
let x = char_idx - self.buf.text().line_to_char(line_idx);
@@ 546,7 546,7 @@ impl View for EditorView {
x_acc += span.content.resolve(line).chars().count();
if x_acc > x {
style = span.attr.clone();
- break;
+ break
}
}
}
M src/cursor/jump.rs +2 -2
@@ 200,7 200,7 @@ pub fn spawn(cur: &Cursor, text: &Rope)
Some(found_start)
)}
);
- break;
+ break
}
}
@@ 265,7 265,7 @@ fn select_word(text: &Rope, char_idx: us
let idx = line_string[..idx].chars().count();
if idx > x {
sel.end = idx;
- break;
+ break
} else {
sel.start = idx;
}