summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyohei Uto <61998590+kyoheiu@users.noreply.github.com>2021-11-08 05:43:40 +0900
committerGitHub <noreply@github.com>2021-11-08 05:43:40 +0900
commit27f811b822f03c83205b7f934a567ab50b8d2a26 (patch)
tree63bd5984e25348d0f0355ececce230b8b452b2fd
parent122996d0954d2941063b99c32d2464c149ee49c0 (diff)
parentc85b605ee98a1c838f280dd24d40e5319d80c40d (diff)
Merge pull request #19 from kyoheiu/developv0.2.2
Develop
-rw-r--r--src/run.rs20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/run.rs b/src/run.rs
index 2f5c6bd..d71ff4c 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -974,6 +974,18 @@ pub fn run(arg: PathBuf) {
if command == vec!['q'] {
break 'main;
+ } else if command == vec!['e'] {
+ state.update_list(&current_dir);
+ clear_and_show(&current_dir);
+ state.list_up(0);
+ print!(
+ "{}{}>{}",
+ cursor::Hide,
+ cursor::Goto(1, STARTING_POINT),
+ cursor::Left(1)
+ );
+ nums.reset();
+ break 'command;
}
let commands: String = command.iter().collect();
@@ -1000,10 +1012,10 @@ pub fn run(arg: PathBuf) {
clear_and_show(&current_dir);
state.list_up(0);
print!(
- "{}>{}{}",
+ "{}{}>{}",
+ cursor::Hide,
cursor::Goto(1, STARTING_POINT),
cursor::Left(1),
- cursor::Hide
);
nums.reset();
break 'command;
@@ -1029,7 +1041,7 @@ pub fn run(arg: PathBuf) {
cursor::Goto(1, y),
cursor::Left(1)
);
- break;
+ break 'command;
}
Key::Esc => {
@@ -1041,7 +1053,7 @@ pub fn run(arg: PathBuf) {
cursor::Goto(1, y),
cursor::Left(1)
);
- break;
+ break 'command;
}
Key::Left => {