Skip to content

Commit

Permalink
display loaded modules in loaded order
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Delaere committed Oct 2, 2017
1 parent 37586ff commit d24c3e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rsmodules"
version = "0.5.6"
version = "0.5.7"
authors = ["Frederik Delaere <[email protected]>"]

[dependencies]
Expand Down
3 changes: 2 additions & 1 deletion src/rsmodules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ fn list(rsmod: &mut Rsmodule) {

let mut loadedmodules: Vec<&str> = loadedmodules.split(':').collect();
loadedmodules.retain(|&x| x != "");
loadedmodules.sort();
// display loaded modules in loaded order
loadedmodules.reverse();

if loadedmodules.len() > 0 {
if rsmod.shell != "noshell" {
Expand Down

0 comments on commit d24c3e9

Please sign in to comment.