From a72f0a73dc131fb1861d68c67115a10b38b6982d Mon Sep 17 00:00:00 2001 From: Pavel Ivanov Date: Tue, 9 Jan 2024 21:17:02 +0100 Subject: [PATCH] fix: fixed missing new-line characters in follow mode --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/app.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c321578b..834ea0f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -718,7 +718,7 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hl" -version = "0.23.2" +version = "0.23.3" dependencies = [ "atoi", "bincode", diff --git a/Cargo.toml b/Cargo.toml index fca87dec..23c7093c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ categories = ["command-line-utilities"] description = "Utility for viewing json-formatted log files." keywords = ["cli", "human", "log"] name = "hl" -version = "0.23.2" +version = "0.23.3" edition = "2021" build = "build.rs" diff --git a/src/app.rs b/src/app.rs index e535fcc5..632777db 100644 --- a/src/app.rs +++ b/src/app.rs @@ -489,6 +489,7 @@ impl App { mem_usage -= entry.1.1.end - entry.1.1.start; output.write_all(sync_indicator.value.as_bytes())?; output.write_all(&entry.1.0[entry.1.1.clone()])?; + output.write_all(&[b'\n'])?; } }