X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=tig.c;h=3ae55f23d78d87b0f2ad3bcec9d9f8591862913f;hb=c77942d3d053415bcf1a09f79e8b05a7b76f6de2;hp=7ad7fe741ce2b80ac74c58503b9529ed76ecb886;hpb=2fa792e814f533b95124fef2eac6b556a8db392a;p=tig.git diff --git a/tig.c b/tig.c index 7ad7fe7..3ae55f2 100644 --- a/tig.c +++ b/tig.c @@ -2542,9 +2542,6 @@ begin_update(struct view *view, const char *dir, const char **argv, enum open_fl if (view->argv && view->argv[0] && !io_run(&view->io, IO_RD, view->dir, view->argv)) return FALSE; - else if (view->argv && !strcmp(view->argv[0], opt_cdup) && - !io_open(&view->io, "%s%s", opt_cdup, view->argv[1])) - return FALSE; setup_update(view, view->id); @@ -2795,6 +2792,7 @@ open_file(struct view *prev, struct view *view, const char *file, enum open_flag if (view->pipe) end_update(view, TRUE); + view->dir = opt_cdup; if (!argv_copy(&view->argv, file_argv)) { report("Failed to load %s: out of memory", file); } else {