Code

blame: Fix opening from subdirectory and consecutive invokations
authorJonas Fonseca <fonseca@diku.dk>
Mon, 24 Mar 2008 00:10:23 +0000 (01:10 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Mon, 24 Mar 2008 00:27:44 +0000 (01:27 +0100)
tig.c

diff --git a/tig.c b/tig.c
index 39d63e71ffaa04e0e2f196f674b2fbba40ac82ca..5524a07ac3ef2d46eb000fba9a8b52cc6161b262 100644 (file)
--- 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) {