diff options
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/main.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock index a6cec3e..831c6fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -119,7 +119,7 @@ dependencies = [ [[package]] name = "clinte" -version = "0.3.1" +version = "0.3.2" dependencies = [ "chrono 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 5ec0ce3..94d6300 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clinte" -version = "0.3.1" +version = "0.3.2" authors = ["Ben Morrison <ben@gbmor.dev>"] edition = "2018" diff --git a/src/main.rs b/src/main.rs index 9541176..b837d47 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,7 +90,7 @@ fn list_matches(db: &db::Conn) { }); for (i, e) in postvec.iter().enumerate() { - if (postvec.len() >= 30 && i >= postvec.len() - 31) || postvec.len() < 30 { + if (postvec.len() > 14 && i >= postvec.len() - 15) || postvec.len() < 15 { print!("{}", e); } } |