mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-10-27 05:19:58 -04:00
Do not print redundant newline after creating a notes-only entry
This commit is contained in:
1 parent
349fd807b5
commit
5bc0ff96c0
2 files changed
-2
No files matched your search
@@ -38,7 +38,6 @@ func AddEntry(targetLocation string, hidePassword bool, entryType uint8) {
|
|||||||
} else {
|
} else {
|
||||||
note := newNote()
|
note := newNote()
|
||||||
unencryptedEntry = append([]string{"", "", ""}, note...)
|
unencryptedEntry = append([]string{"", "", ""}, note...)
|
||||||
fmt.Println()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ensure entry data is not empty
|
// ensure entry data is not empty
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ func inputHidden(prompt string) string {
|
|||||||
|
|
||||||
// inputInt prompts the user for input and returns the input as an integer
|
// inputInt prompts the user for input and returns the input as an integer
|
||||||
func inputInt(prompt string) int {
|
func inputInt(prompt string) int {
|
||||||
|
|
||||||
// loop until a valid integer is entered
|
// loop until a valid integer is entered
|
||||||
for {
|
for {
|
||||||
fmt.Print("\n" + prompt + " ")
|
fmt.Print("\n" + prompt + " ")
|
||||||
|
|||||||
Reference in new issue
Block a user