diff options
author | Aaron Ball <nullspoon@iohq.net> | 2015-02-24 12:16:04 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2015-02-24 12:16:04 -0700 |
commit | ba5782026e73073e2a76bd628e9596338fe5e9c2 (patch) | |
tree | fe5008c6fd2d45d10c69d7c737dca749f3f13e28 | |
parent | 2f2c938825bb50a636fca57cdb9ce26f7e4e3045 (diff) | |
download | noteless-ba5782026e73073e2a76bd628e9596338fe5e9c2.tar.gz noteless-ba5782026e73073e2a76bd628e9596338fe5e9c2.tar.xz |
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.
-rw-r--r-- | src/note_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |