From cf2b9750ca87ed4fadee63606d8de6f109e84cb8 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Fri, 30 Aug 2019 18:21:12 -0400 Subject: moved display to 15 posts --- Cargo.lock | 2 +- Cargo.toml | 2 +- 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 "] 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); } } -- cgit 1.4.1-2-gfad0