From 4ef329ca4f031662ad408158564409b9ac200ec3 Mon Sep 17 00:00:00 2001 From: ondra Date: Sat, 13 Sep 2025 15:26:33 +0200 Subject: [PATCH] ensure cl file ends with LF --- src/action_log.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/action_log.rs b/src/action_log.rs index 945db4e..7824fa4 100644 --- a/src/action_log.rs +++ b/src/action_log.rs @@ -98,6 +98,10 @@ pub(crate) fn cl_log(ctx: AppContext) -> anyhow::Result<()> { text = prefill_text; } + if !text.ends_with('\n') { + text.push('\n'); + } + store.create_entry(entry_name, text)?; println!("{}", "Done.".green());