diff options
author | John Hawthorn <john@hawthorn.email> | 2019-08-16 01:17:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-16 01:17:40 -0700 |
commit | b7ff1a61a845253fb090126c6cd9f29f028b66e6 (patch) | |
tree | 5a3662fb7b40386a686e5cdd0d5a0f8adef7f549 /src/fzy.c | |
parent | a318e00e30df4056c78ff4edf38376feb4d57dab (diff) | |
parent | 79e48082f579f6c02a55b7cff81ecee1c4127b29 (diff) |
Merge pull request #121 from jhawthorn/read-null
Add -0/--read-null
Diffstat (limited to 'src/fzy.c')
-rw-r--r-- | src/fzy.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -27,11 +27,11 @@ int main(int argc, char *argv[]) { fprintf(stderr, "Must specify -e/--show-matches with --benchmark\n"); exit(EXIT_FAILURE); } - choices_fread(&choices, stdin); + choices_fread(&choices, stdin, options.input_delimiter); for (int i = 0; i < options.benchmark; i++) choices_search(&choices, options.filter); } else if (options.filter) { - choices_fread(&choices, stdin); + choices_fread(&choices, stdin, options.input_delimiter); choices_search(&choices, options.filter); for (size_t i = 0; i < choices_available(&choices); i++) { if (options.show_scores) @@ -42,13 +42,13 @@ int main(int argc, char *argv[]) { /* interactive */ if (isatty(STDIN_FILENO)) - choices_fread(&choices, stdin); + choices_fread(&choices, stdin, options.input_delimiter); tty_t tty; tty_init(&tty, options.tty_filename); if (!isatty(STDIN_FILENO)) - choices_fread(&choices, stdin); + choices_fread(&choices, stdin, options.input_delimiter); if (options.num_lines > choices.size) options.num_lines = choices.size; |