diff options
author | Kyohei Uto <61998590+kyoheiu@users.noreply.github.com> | 2021-11-08 05:43:40 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-08 05:43:40 +0900 |
commit | 27f811b822f03c83205b7f934a567ab50b8d2a26 (patch) | |
tree | 63bd5984e25348d0f0355ececce230b8b452b2fd | |
parent | 122996d0954d2941063b99c32d2464c149ee49c0 (diff) | |
parent | c85b605ee98a1c838f280dd24d40e5319d80c40d (diff) |
Merge pull request #19 from kyoheiu/developv0.2.2
Develop
-rw-r--r-- | src/run.rs | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -974,6 +974,18 @@ pub fn run(arg: PathBuf) { if command == vec!['q'] { break 'main; + } else if command == vec!['e'] { + state.update_list(¤t_dir); + clear_and_show(¤t_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(¤t_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 => { |