diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2024-02-12 20:21:26 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-12 20:24:56 +0100 |
commit | a0010a186d93187d2b69b857d75db8a1e01049bb (patch) | |
tree | 5ec733566b066d5d053a38fe2117ac5bad68e6ad /src/diff.c | |
parent | 6d91227267a5f7e21fc9b30443687618e92751bf (diff) |
patch 9.1.0099: Not able to use diff() with 'diffexpr'v9.1.0099
Problem: Not able to use diff() with 'diffexpr'
(rickhowe, after v9.1.0096)
Solution: Use a default context length of 0, update diff() help text,
add a test for using diff() with 'diffexpr'
(Yegappan Lakshmanan)
closes: #14013
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diff.c b/src/diff.c index a4f3f7e072..d2089dc15e 100644 --- a/src/diff.c +++ b/src/diff.c @@ -3511,9 +3511,9 @@ parse_diff_optarg( } } - *diff_ctxlen = dict_get_number_def(d, "context", 1); + *diff_ctxlen = dict_get_number_def(d, "context", 0); if (*diff_ctxlen < 0) - *diff_ctxlen = 1; + *diff_ctxlen = 0; if (dict_get_bool(d, "iblank", FALSE)) *diffopts |= DIFF_IBLANK; |