diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-25 08:41:39 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-25 08:42:09 -0400 |
commit | e411fc0be674ff01b614802a1e706071593c6647 (patch) | |
tree | af6175466c9c739266539b45fae5d1b264522e78 /src/commands/new_directory.rs | |
parent | d41770f76a9d19c9df7fd44e971c636eb1c23e1e (diff) |
rework how previewing works
- should be more extensible now
Diffstat (limited to 'src/commands/new_directory.rs')
-rw-r--r-- | src/commands/new_directory.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/new_directory.rs b/src/commands/new_directory.rs index 624aa90..1e951b7 100644 --- a/src/commands/new_directory.rs +++ b/src/commands/new_directory.rs @@ -18,7 +18,10 @@ impl NewDirectory { "mkdir" } - fn new_directory(context: &mut JoshutoContext, view: &JoshutoView) -> Result<(), std::io::Error> { + fn new_directory( + context: &mut JoshutoContext, + view: &JoshutoView, + ) -> Result<(), std::io::Error> { let (term_rows, term_cols) = ui::getmaxyx(); const PROMPT: &str = ":mkdir "; |