summaryrefslogtreecommitdiffstats
path: root/src/commands/open_file.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-27 08:11:16 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-27 08:11:16 -0400
commit35579905606926893d4e7c0f3f58096c5b581444 (patch)
tree383c1283617c6deddf0d6263a1f61f5ebcaccd1d /src/commands/open_file.rs
parentecc16f39e5c146e47e37bb327e86f97b7ade1ef9 (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.rs10
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();