From: Jonas Fonseca Date: Mon, 24 Mar 2008 00:10:23 +0000 (+0100) Subject: blame: Fix opening from subdirectory and consecutive invokations X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8f298f3e6cb13baaf569690aedd00cb3713039b9;p=tig.git blame: Fix opening from subdirectory and consecutive invokations --- diff --git a/tig.c b/tig.c index 39d63e7..5524a07 100644 --- a/tig.c +++ b/tig.c @@ -3159,8 +3159,8 @@ tree_request(struct view *view, enum request request, struct line *line) return REQ_NONE; } - string_copy(opt_ref, ref_commit); - string_ncopy(opt_file, filename, strlen(filename)); + string_copy(opt_ref, view->vid); + string_format(opt_file, "%s%s", opt_path, filename); return request; } if (request == REQ_TREE_PARENT) {