Permalink
Browse files

Support refreshing the diff view by reloading the data

This allows new diff-options to take effect.  The diff view is still
unrefreshable when reading data from STDIN.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
  • Loading branch information...
1 parent 33a60e4 commit ebf5058f59dacbdcda7921ecd3d15b881c70026e @tsibley tsibley committed with Feb 12, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 tig.c
View
@@ -4546,6 +4546,10 @@ diff_request(struct view *view, enum request request, struct line *line)
case REQ_ENTER:
return diff_common_enter(view, request, line);
+ case REQ_REFRESH:
+ reload_view(view);
+ return REQ_NONE;
+
default:
return pager_request(view, request, line);
}

0 comments on commit ebf5058

Please sign in to comment.