aboutsummaryrefslogtreecommitdiff
path: root/src/command.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-23 18:09:28 +0100
committerAkshay <[email protected]>2020-07-23 18:09:28 +0100
commit2f47f50b0382491099391185c6a2702b1370b206 (patch)
treefd8ed91e0785cf78ec39c3d1ff1b573b7ee234ee /src/command.rs
parent91cb3ebf5b3af666b13f4821ff25f219fdccd7b9 (diff)
remove dependency on rustc v1.45, bump to v0.2.1v0.2.1
Diffstat (limited to 'src/command.rs')
-rw-r--r--src/command.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/command.rs b/src/command.rs
index 38d48e9..0372065 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -61,8 +61,7 @@ pub fn open_command_window(s: &mut Cursive) {
61 let completion = get_habit_completion(word, &habit_list); 61 let completion = get_habit_completion(word, &habit_list);
62 eprintln!("{:?} | {:?}", completion, contents); 62 eprintln!("{:?} | {:?}", completion, contents);
63 if let Some(c) = completion { 63 if let Some(c) = completion {
64 let cb = 64 let cb = view.set_content(format!("{}", contents) + &c[word.len()..]);
65 view.set_content(format!("{}", contents) + c.strip_prefix(word).unwrap());
66 return Some(EventResult::Consumed(Some(cb))); 65 return Some(EventResult::Consumed(Some(cb)));
67 }; 66 };
68 return None; 67 return None;