@@ -501,7 +501,7 @@ impl std::str::FromStr for MappableCommand {
502 fn from_str(s: &str) -> Result<Self, Self::Err> {
502 fn from_str(s: &str) -> Result<Self, Self::Err> {
503 if let Some(suffix) = s.strip_prefix(':') {
503 if let Some(suffix) = s.strip_prefix(':') {
504− let mut typable_command = suffix.split(' ').into_iter().map(|arg| arg.trim());
504+ let mut typable_command = suffix.split(' ').map(|arg| arg.trim());
505 let name = typable_command
505 let name = typable_command
507 .ok_or_else(|| anyhow!("Expected typable command name"))?;
507 .ok_or_else(|| anyhow!("Expected typable command name"))?;
@@ -1470,7 +1470,7 @@ pub fn scroll(cx: &mut Context, offset: usize, direction: Direction) {
1470 let cursor = range.cursor(text);
1470 let cursor = range.cursor(text);
1471 let height = view.inner_height();
1471 let height = view.inner_height();
1473− let scrolloff = config.scrolloff.min(height.saturating_sub(1) as usize / 2);
1473+ let scrolloff = config.scrolloff.min(height.saturating_sub(1) / 2);
1474 let offset = match direction {
1474 let offset = match direction {
1475 Forward => offset as isize,
1475 Forward => offset as isize,
1476 Backward => -(offset as isize),
1476 Backward => -(offset as isize),