summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index e6d3728..6a2d170 100644
--- a/src/main.c
+++ b/src/main.c
@@ -187,9 +187,9 @@ int main(int argc, char* argv[]) {
// return cat_note( list, name );
} else if(strcmp(argv[1], "help") == 0) {
get_help();
- // } else if( list.find_note_id( arg ) != -1 ) {
- // // Try to open the note if it exists
- // return list.edit( editor, arg );
+ } else if(note_list_get_note_id(&list, argv[1]) != -1 ) {
+ // Try to open the note if it exists
+ return note_list_edit(&list, editor, argv[1]);
} else {
printf("Error: Unknown command or note name '%s'.\n", argv[1]);
return 1;

Generated by cgit