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>
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user