From d323f2f75a219163f3b6b3fbb2b7c1b21930fd0b Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sat, 1 Feb 2025 12:19:27 -0500 Subject: [PATCH] Do not re-upload entries when adding a blank note --- src/cli/edit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/edit.go b/src/cli/edit.go index dec86c6..72c1cb6 100644 --- a/src/cli/edit.go +++ b/src/cli/edit.go @@ -119,8 +119,8 @@ func editNote(baseNote []string) ([]string, bool) { // clamp trailing whitespace in each note line core.ClampTrailingWhitespace(note) - // return the edited note if it is different from baseNote - if !reflect.DeepEqual(note, baseNote) { + // return the edited note if it is different from baseNote and is not empty + if !reflect.DeepEqual(note, baseNote) && len(note) > 0 { return note, true } else { return nil, false