summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/gui.c b/gui/gui.c
index f218283..8f9e25a 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -418,10 +418,10 @@ static void get_history(struct gui *gui, const char *name, int limit)
return;
}
- gui->vcs_history = vcs_git_history(name);
- hist_iterate(gui->vcs_history, count_history, gui);
if (limit < 0)
limit = -limit;
+ gui->vcs_history = vcs_git_history(name, limit);
+ hist_iterate(gui->vcs_history, count_history, gui);
if (limit && gui->hist_size > limit)
gui->hist_size = limit;
}