version 1.14, 2010/06/21 01:27:46 |
version 1.15, 2010/06/27 02:56:59 |
|
|
cmd = data->cmd; |
cmd = data->cmd; |
if (cmd == NULL) |
if (cmd == NULL) |
cmd = options_get_string(&s->options, "default-command"); |
cmd = options_get_string(&s->options, "default-command"); |
if (ctx->cmdclient == NULL || ctx->cmdclient->cwd == NULL) |
cwd = options_get_string(&s->options, "default-path"); |
cwd = options_get_string(&s->options, "default-path"); |
if (*cwd == '\0') { |
else |
if (ctx->cmdclient != NULL && ctx->cmdclient->cwd != NULL) |
cwd = ctx->cmdclient->cwd; |
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"); |