diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-05-27 08:11:16 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-05-27 08:11:16 -0400 |
commit | 35579905606926893d4e7c0f3f58096c5b581444 (patch) | |
tree | 383c1283617c6deddf0d6263a1f61f5ebcaccd1d /src/commands/open_file.rs | |
parent | ecc16f39e5c146e47e37bb327e86f97b7ade1ef9 (diff) |
refactor rename and search to make use of the command line
- update all other commands that make use of textfield to use new
interface
Diffstat (limited to 'src/commands/open_file.rs')
-rw-r--r-- | src/commands/open_file.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/commands/open_file.rs b/src/commands/open_file.rs index 98d0c67..863126e 100644 --- a/src/commands/open_file.rs +++ b/src/commands/open_file.rs @@ -200,14 +200,8 @@ impl OpenFileWith { ui::display_options(&display_win, &display_vec); ncurses::doupdate(); - let textfield = JoshutoTextField::new( - 1, - term_cols, - (term_rows as usize - 1, 0), - PROMPT.to_string(), - String::from(""), - String::from(""), - ); + let textfield = + JoshutoTextField::new(1, term_cols, (term_rows as usize - 1, 0), PROMPT, "", ""); user_input = textfield.readline(); } ncurses::doupdate(); |