fzy

terminal fuzzy finder picker

git clone https://9o.is/git/fzy.git

commit b3863c60b62742e76f480e7b7833ab286406ada3
parent 9ed1f74a53bf0a42e1d4f5cb6ef9dcbfd602545b
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Mon,  2 May 2016 21:45:26 -0700

Rename choices_free to choices_destroy

To clarify that we aren't freeing the choices structure, just the
buffers associated with it.

Diffstat:
Mchoices.c | 2+-
Mchoices.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/choices.c b/choices.c @@ -97,7 +97,7 @@ void choices_init(choices_t *c) { choices_reset_search(c); } -void choices_free(choices_t *c) { +void choices_destroy(choices_t *c) { free(c->buffer); c->buffer = NULL; c->buffer_size = 0; diff --git a/choices.h b/choices.h @@ -24,7 +24,7 @@ typedef struct { void choices_init(choices_t *c); void choices_fread(choices_t *c, FILE *file); -void choices_free(choices_t *c); +void choices_destroy(choices_t *c); void choices_add(choices_t *c, const char *choice); size_t choices_available(choices_t *c); void choices_search(choices_t *c, const char *search);