mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-02 15:17:24 -04:00
Do not print redundant newline after creating a notes-only entry
This commit is contained in:
@@ -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