Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change diff-context setting to have a minimum value of 0

Currently the minimum value accepted from the config is 1,
although in interactive usage (hitting [) the value goes to 0. 

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
  • Loading branch information...
commit c1c40ecc314542d6387c74ac2393065fda327f58 1 parent 03443da
@hugows hugows authored jonas committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  tig.c
View
2  tig.c
@@ -1491,7 +1491,7 @@ option_set_command(int argc, const char *argv[])
return parse_int(&opt_tab_size, argv[2], 1, 1024);
if (!strcmp(argv[0], "diff-context")) {
- enum option_code code = parse_int(&opt_diff_context, argv[2], 1, 999999);
+ enum option_code code = parse_int(&opt_diff_context, argv[2], 0, 999999);
if (code == OPT_OK)
update_diff_context_arg(opt_diff_context);
Please sign in to comment.
Something went wrong with that request. Please try again.