Sync with latest libmutton development version

This commit is contained in:
2026-01-24 14:10:03 -05:00
parent 1afbce9b1b
commit 8e59d81fff
5 changed files with 23 additions and 26 deletions
-6
View File
@@ -150,12 +150,6 @@ func editNote(baseNote []string) ([]string, bool) {
// close tempFile
_ = tempFile.Close() // error ignored; if the file could be opened, it can probably be closed
// remove trailing empty strings from the edited note
note = back.RemoveTrailingEmptyStrings(note)
// clamp trailing whitespace in each note line
core.ClampTrailingWhitespace(note)
// return the edited note if:
// it is different from baseNote AND
// [it is not empty (prevent needless writes when adding blank notes) OR
+1 -1
View File
@@ -27,7 +27,7 @@ func inputPasswordGen() string {
return stringy.StringGen(passLength, complexity, passCharset)
}
// writeEntryCLI writes an entry to realPath and previews it (errors if no data is supplied).
// writeEntryCLI writes decSlice to realPath and previews it (errors if no data is supplied).
func writeEntryCLI(realPath string, decSlice []string, passwordIsNew bool, oldPassword string) {
if core.EntryIsNotEmpty(decSlice) {
if err := core.WriteEntry(realPath, decSlice, passwordIsNew, nil); err != nil {