diff options
author | NRK <nrk@disroot.org> | 2021-10-28 07:43:36 +0200 |
---|---|---|
committer | eylles <ed.ylles1997@gmail.com> | 2021-10-30 01:45:55 +0200 |
commit | d0b5005a023da1e436665fc1d795b20246dd9d80 (patch) | |
tree | 871f4cfd1f2e429a2bbb7f6cd227b5769e841421 /options.c | |
parent | 8934744c60a3ef34eb65a6082d59da8ad2234d6c (diff) | |
download | nsxiv-d0b5005a023da1e436665fc1d795b20246dd9d80.tar.zst |
-0 sends NULL separated file-list to key-handler
with this change `-0` is turned into a more generic switch which can be
used to send NULL-separated file-list to the key-handler as well.
this also means `-0` no longer implicitly enables `-o`
Closes: https://github.com/nsxiv/nsxiv/issues/140
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -52,7 +52,7 @@ void parse_options(int argc, char **argv) _options.from_stdin = false; _options.to_stdout = false; - _options.stdout_separator = '\n'; + _options.using_null = false; _options.recursive = false; _options.startnum = 0; @@ -181,8 +181,7 @@ void parse_options(int argc, char **argv) _options.zoom = (float) n / 100.0; break; case '0': - _options.stdout_separator = '\0'; - _options.to_stdout = true; /* -0 implies -o */ + _options.using_null = true; break; } } |