Code

Fix regression of main view drawing
authorJonas Fonseca <fonseca@diku.dk>
Mon, 19 Jan 2009 21:46:24 +0000 (22:46 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Wed, 21 Jan 2009 22:07:10 +0000 (23:07 +0100)
Hopefully last fix for dirty flag regressions.

tig.c

diff --git a/tig.c b/tig.c
index 6d3191e2f9032f0add961b9f69a2f48b57eb0d03..f34334ce7e15682850669743923f75d1c7900fd7 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -5384,6 +5384,7 @@ main_read(struct view *view, char *line)
                        die("No revisions match the given arguments.");
                if (view->lines > 0) {
                        commit = view->line[view->lines - 1].data;
+                       view->line[view->lines - 1].dirty = 1;
                        if (!*commit->author) {
                                view->lines--;
                                free(commit);