From d0624471e01c680610dad0c71e137d28210c9dc5 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Tue, 3 May 2022 21:53:29 +0100 Subject: [PATCH] updated notes to close on empty value (i.e. ESC) --- notes.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notes.nim b/notes.nim index 53e0eee..a4ad077 100644 --- a/notes.nim +++ b/notes.nim @@ -5,7 +5,7 @@ proc start_notes() const all_choices = @["exit"] const note_choices = @["rm","back"] -const note_file = getHomeDir() & ".notes.dmenu" +const note_file = getHomeDir() & "Nextcloud/.notes.dmenu" proc read_notes(): seq[string] = try: @@ -88,7 +88,7 @@ proc start_notes() = return if option in notes: display_option_menu(option) - else: + elif option != "": write_note(option) start_notes()