diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |