-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
This commit is contained in:
NRK
2021-10-28 11:43:36 +06:00
committed by eylles
parent 8934744c60
commit d0b5005a02
5 changed files with 7 additions and 8 deletions

View File

@@ -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;
}
}