Code

Reload the blame view when changing the ref and file variables
authorJonas Fonseca <fonseca@diku.dk>
Thu, 14 Apr 2011 02:29:47 +0000 (22:29 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 14 Apr 2011 02:29:47 +0000 (22:29 -0400)
Fixes regression introduced in recent refactorings.

tig.c

diff --git a/tig.c b/tig.c
index c60a6af299a4858c2e296162db46e3b982f8f295..b1c1bdb93dfa3af5dc02f4fec105d6e209560302 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -2720,6 +2720,7 @@ load_view(struct view *view, enum open_flags flags)
 }
 
 #define refresh_view(view) load_view(view, OPEN_REFRESH)
+#define reload_view(view) load_view(view, OPEN_RELOAD)
 
 static void
 split_view(struct view *prev, struct view *view)
@@ -4427,7 +4428,7 @@ blame_request(struct view *view, enum request request, struct line *line)
                        string_copy(opt_file, blame->commit->filename);
                        if (blame->lineno)
                                view->lineno = blame->lineno;
-                       refresh_view(view);
+                       reload_view(view);
                }
                break;
 
@@ -4440,7 +4441,7 @@ blame_request(struct view *view, enum request request, struct line *line)
                        string_copy_rev(opt_ref, blame->commit->parent_id);
                        string_copy(opt_file, blame->commit->parent_filename);
                        setup_blame_parent_line(view, blame);
-                       refresh_view(view);
+                       reload_view(view);
                }
                break;