Code

Rectify arg indexes changes in blame --no-color fix
authorJonas Fonseca <fonseca@diku.dk>
Sat, 24 Jan 2009 11:59:32 +0000 (12:59 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Sat, 24 Jan 2009 12:00:52 +0000 (13:00 +0100)
tig.c

diff --git a/tig.c b/tig.c
index 7380c0fd8a3b0987506732624f6cecce1317e970..e24939fd3df8c4fcd2552ea28f924b2d6437eaff 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -4172,8 +4172,8 @@ blame_request(struct view *view, enum request request, struct line *line)
                        if (!blame->commit->has_previous) {
                                diff_index_argv[1] = "diff";
                                diff_index_argv[2] = "--no-color";
-                               diff_index_argv[5] = "--";
-                               diff_index_argv[6] = "/dev/null";
+                               diff_index_argv[6] = "--";
+                               diff_index_argv[7] = "/dev/null";
                        }
 
                        if (!prepare_update(diff, diff_index_argv, NULL, FORMAT_DASH)) {