From: Jonas Fonseca Date: Thu, 14 Apr 2011 02:29:47 +0000 (-0400) Subject: Reload the blame view when changing the ref and file variables X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=83ef9f853312f7e4bbc5ef6ba3700f9282e6cb65;p=tig.git Reload the blame view when changing the ref and file variables Fixes regression introduced in recent refactorings. --- diff --git a/tig.c b/tig.c index c60a6af..b1c1bdb 100644 --- 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;