From ba5782026e73073e2a76bd628e9596338fe5e9c2 Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Tue, 24 Feb 2015 12:16:04 -0700 Subject: Fixed bug in edit name match Was using argument for note name once a match had been found, rather than calling the returned id on the note name fuzzy search. That was causing it to open notes that didn't exist for editing rather than performing a partial match on the name and opening the intended note. --- src/note_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/note_list.c b/src/note_list.c index b1527c2..638d631 100644 --- a/src/note_list.c +++ b/src/note_list.c @@ -175,7 +175,7 @@ int note_list_edit(note_list_t* list, char* editor, char* note_name) { char path[256]; strcpy(path, list->path); strcat(path, "/"); - strcat(path, note_name); + strcat(path, list->names[id]); strcat(path, "."); strcat(path, list->extension); printf("%s\n", path); -- cgit v1.2.3