summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkshay <nerdy@peppe.rs>2020-08-03 21:46:54 +0530
committerAkshay <nerdy@peppe.rs>2020-08-03 21:46:54 +0530
commit807f945a08e0ff28968194c098a0a05a6a79ba09 (patch)
tree8f56083739727a2f8965d10e92d853ae13572501
parent5b4baacef870811401751417c4e72fd25e02e5a2 (diff)
don't write to stderr!feature/config-file
-rw-r--r--src/command.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/command.rs b/src/command.rs
index e4c099e..4f3e491 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -29,7 +29,6 @@ fn get_command_completion(prefix: &str) -> Option<String> {
fn get_habit_completion(prefix: &str, habit_names: &[String]) -> Option<String> {
let first_match = habit_names.iter().filter(|&x| x.starts_with(prefix)).next();
- eprintln!("{:?}| {:?}", prefix, first_match);
return first_match.map(|x| x.into());
}
@@ -60,7 +59,6 @@ pub fn open_command_window(s: &mut Cursive) {
} else {
let word = contents.split(' ').last().unwrap();
let completion = get_habit_completion(word, &habit_list);
- eprintln!("{:?} | {:?}", completion, contents);
if let Some(c) = completion {
let cb = view.set_content(format!("{}", contents) + &c[word.len()..]);
return Some(EventResult::Consumed(Some(cb)));