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/command_line.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/command_line.rs')
-rw-r--r-- | src/commands/command_line.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/command_line.rs b/src/commands/command_line.rs index 80e907b..6589fb4 100644 --- a/src/commands/command_line.rs +++ b/src/commands/command_line.rs @@ -31,9 +31,9 @@ impl CommandLine { 1, term_cols, (term_rows as usize - 1, 0), - PROMPT.to_string(), - self.prefix.clone(), - self.suffix.clone(), + PROMPT, + &self.prefix, + &self.suffix, ); textfield.readline() }; |