Skip to content

Commit

Permalink
Only override blame-options when given command line blame options
Browse files Browse the repository at this point in the history
  • Loading branch information
m42a committed May 27, 2017
1 parent 9550082 commit f178716
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/blame.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ blame_open(struct view *view, enum open_flags flags)

string_ncopy(view->env->file, opt_file_args[0], strlen(opt_file_args[0]));

opt_blame_options = opt_cmdline_args;
opt_cmdline_args = NULL;
if (opt_cmdline_args) {
opt_blame_options = opt_cmdline_args;
opt_cmdline_args = NULL;
}

/*
* flags (like "--max-age=123") and bottom limits (like "^foo")
Expand Down

0 comments on commit f178716

Please sign in to comment.