Skip to content

Commit

Permalink
remove dependency on rustc v1.45, bump to v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
oppiliappan committed Jul 23, 2020
1 parent 91cb3eb commit 2f47f50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dijo"
version = "0.2.0"
version = "0.2.1"
authors = ["Akshay <[email protected]>"]
edition = "2018"
description = "Scriptable, curses-based, digital habit tracker"
Expand Down
3 changes: 1 addition & 2 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ pub fn open_command_window(s: &mut Cursive) {
let completion = get_habit_completion(word, &habit_list);
eprintln!("{:?} | {:?}", completion, contents);
if let Some(c) = completion {
let cb =
view.set_content(format!("{}", contents) + c.strip_prefix(word).unwrap());
let cb = view.set_content(format!("{}", contents) + &c[word.len()..]);
return Some(EventResult::Consumed(Some(cb)));
};
return None;
Expand Down

0 comments on commit 2f47f50

Please sign in to comment.