diff options
author | N-R-K <79544946+N-R-K@users.noreply.github.com> | 2021-09-21 01:11:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-21 01:11:47 +0200 |
commit | 63972db743398a4c2f0159110f5e14fb1effb6d5 (patch) | |
tree | 31be25daaa0278f0fb153b3d703f39501c76866a /commands.c | |
parent | 3234b0e521cca006a94cb135a88d146122d7f66d (diff) | |
download | nsxiv-63972db743398a4c2f0159110f5e14fb1effb6d5.tar.zst |
add -0 for outputting null-terminated list (#68)
* add -0 for outputting null-terminated list
this doesn't add much, if any, additional complexity to the codebase and
can be quite handy for scripting purposes.
Closes: https://github.com/nsxiv/nsxiv/issues/67
* Fix typo
Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
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\n", files[i].name); + printf("%s%c", files[i].name, options->stdout_separator); } } exit(EXIT_SUCCESS); |