Check for interactive session correctly for no-config bindings

This only looked for "--interactive", and failed when implicitly interactive.
This commit is contained in:
Fabian Boehm 2022-06-13 17:17:29 +02:00
parent e0add36488
commit d00a2db5f1

View File

@ -516,7 +516,7 @@ int main(int argc, char **argv) {
read_init(parser, paths);
}
if (opts.is_interactive_session && opts.no_config && !opts.no_exec) {
if (is_interactive_session() && opts.no_config && !opts.no_exec) {
// If we have no config, we default to the default key bindings.
parser.vars().set_one(L"fish_key_bindings", ENV_UNEXPORT, L"fish_default_key_bindings");
if (function_exists(L"fish_default_key_bindings", parser)) {