mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.1.0099: Not able to use diff() with 'diffexpr'
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>
This commit is contained in:
committed by
Christian Brabandt
parent
6d91227267
commit
a0010a186d
@@ -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;
|
||||
|
Reference in New Issue
Block a user