fzy

terminal fuzzy finder picker

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

commit a2344d998a87fc7ab182935f84d5472710b531ff
parent 5090121cd3d18cf598da84a51e12df20869358bc
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Wed, 22 Jun 2016 23:53:20 -0700

Store result of getopt_long in an int

This fixes issues on ARM, where char is unsigned.

Diffstat:
MCHANGELOG.md | 4++++
Msrc/options.c | 2+-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -5,6 +5,10 @@ Performance: - Use threads to parallelize searching and scoring - Read all pending input from tty before searching +Bugfixes: + + - Fixed command line parsing on ARM + ## 0.5 (2016-06-11) Bugfixes: diff --git a/src/options.c b/src/options.c @@ -48,7 +48,7 @@ void options_set_defaults(options_t *options) { void options_parse(options_t *options, int argc, char *argv[]) { options_set_defaults(options); - char c; + int c; while ((c = getopt_long(argc, argv, "vhse:q:l:t:p:", longopts, NULL)) != -1) { switch (c) { case 'v':