summaryrefslogtreecommitdiffstats
path: root/src/commands/command_line.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/command_line.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/command_line.rs')
-rw-r--r--src/commands/command_line.rs6
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()
};