Skip to content

Commit

Permalink
Fixed issues with ranger file manager
Browse files Browse the repository at this point in the history
  • Loading branch information
curlpipe committed Oct 23, 2024
1 parent 6c92b60 commit 8ccde0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl CommandLineInterface {
config_path: j
.option_arg::<String, Key>(config.clone())
.unwrap_or_else(|| "~/.oxrc".to_string()),
to_open: j.finish(),
to_open: j.finish().into_iter().filter(|o| o != "--").collect(),
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/editor/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl Editor {
let idx = y.saturating_sub(start);
let line = message
.get(idx as usize)
.map_or(" ".repeat(max_width), |s| s.to_string());
.map_or(" ".repeat(max_width), std::string::ToString::to_string);
display!(self, line, " ".repeat(max_width));
}
}
Expand Down

0 comments on commit 8ccde0f

Please sign in to comment.