fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit f1aeb78682f075cec7b89b3c5c08b5ee3df99530 parent 539288bd080f7590cc8dabac8b6af4a6cd1f1aa9 Author: John Hawthorn <john.hawthorn@gmail.com> Date: Sat, 7 Nov 2015 01:58:09 -0800 Use size_t where appropriate Diffstat:
| M | choices.c | | | 2 | +- |
| M | fzy.c | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/choices.c b/choices.c @@ -18,7 +18,7 @@ static int cmpchoice(const void *_idx1, const void *_idx2) { return -1; } -static void choices_resize(choices_t *c, int new_capacity) { +static void choices_resize(choices_t *c, size_t new_capacity) { c->strings = realloc(c->strings, new_capacity * sizeof(const char *)); if (!c->strings) { diff --git a/fzy.c b/fzy.c @@ -35,7 +35,7 @@ void read_choices(choices_t *c) { } #define SEARCH_SIZE_MAX 4096 -int search_size; +size_t search_size; char search[SEARCH_SIZE_MAX + 1] = {0}; void clear(tty_t *tty) {