version 1.17, 2011/01/04 00:42:47 |
version 1.18, 2011/12/09 16:28:18 |
|
|
cmd = options_get_string(&s->options, "default-command"); |
cmd = options_get_string(&s->options, "default-command"); |
else |
else |
cmd = args->argv[0]; |
cmd = args->argv[0]; |
cwd = options_get_string(&s->options, "default-path"); |
cwd = cmd_get_default_path(ctx); |
if (*cwd == '\0') { |
|
if (ctx->cmdclient != NULL && ctx->cmdclient->cwd != NULL) |
|
cwd = ctx->cmdclient->cwd; |
|
else |
|
cwd = s->cwd; |
|
} |
|
|
|
if (idx == -1) |
if (idx == -1) |
idx = -1 - options_get_number(&s->options, "base-index"); |
idx = -1 - options_get_number(&s->options, "base-index"); |