diff options
author | NRK <nrk@disroot.org> | 2021-10-28 11:43:36 +0600 |
---|---|---|
committer | eylles <ed.ylles1997@gmail.com> | 2021-10-29 17:45:55 -0600 |
commit | d0b5005a023da1e436665fc1d795b20246dd9d80 (patch) | |
tree | 871f4cfd1f2e429a2bbb7f6cd227b5769e841421 /commands.c | |
parent | 8934744c60a3ef34eb65a6082d59da8ad2234d6c (diff) |
-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 'commands.c')
-rw-r--r-- | commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -59,7 +59,7 @@ bool cg_quit(arg_t _) if (options->to_stdout && markcnt > 0) { for (i = 0; i < filecnt; i++) { if (files[i].flags & FF_MARK) - printf("%s%c", files[i].name, options->stdout_separator); + printf("%s%c", files[i].name, options->using_null ? '\0' : '\n'); } } exit(EXIT_SUCCESS); |