Commit e69715c6aee0a6d949b20f767f11ee7f0f081e62
Set correct CWD on executing startup commands
Otherwise things like `-c '!ls%u'` might not work.
Author: xaizek
Author date (UTC): 2017-06-15 21:14
Committer name: xaizek
Committer date (UTC): 2017-06-15 21:16
Parent(s): ded9e2b54411ee149aa26a37137fbf6e0e380e83
Signing key: 99DC5E4DB05F6BE2
Tree: 130094ba91be00c845ec00c481b6210a07d9a5bc
File ChangeLog changed (mode: 100644) (index 016050f86..e21c8bc16) |
19 |
19 |
Update the other view after file deletion (that file might be visible |
Update the other view after file deletion (that file might be visible |
20 |
20 |
there too). |
there too). |
21 |
21 |
|
|
|
22 |
|
Execute startup commands in directory of current pane. |
|
23 |
|
|
22 |
24 |
Fixed ruler being updated when it shouldn't even be visible. Thanks to |
Fixed ruler being updated when it shouldn't even be visible. Thanks to |
23 |
25 |
filterfalse. |
filterfalse. |
24 |
26 |
|
|
File src/vifm.c changed (mode: 100644) (index 9f3de4753..82c25ee26) |
... |
... |
exec_startup_commands(const args_t *args) |
622 |
622 |
size_t i; |
size_t i; |
623 |
623 |
for(i = 0; i < args->ncmds; ++i) |
for(i = 0; i < args->ncmds; ++i) |
624 |
624 |
{ |
{ |
|
625 |
|
/* Make sure we're executing commands in correct directory. */ |
|
626 |
|
(void)vifm_chdir(flist_get_dir(curr_view)); |
|
627 |
|
|
625 |
628 |
(void)exec_commands(args->cmds[i], curr_view, CIT_COMMAND); |
(void)exec_commands(args->cmds[i], curr_view, CIT_COMMAND); |
626 |
629 |
} |
} |
627 |
630 |
} |
} |