Mercurial > vim
diff src/evalfunc.c @ 34332:7ccaadd7cf0b v9.1.0099
patch 9.1.0099: Not able to use diff() with 'diffexpr'
Commit: https://github.com/vim/vim/commit/a0010a186d93187d2b69b857d75db8a1e01049bb
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Feb 12 20:21:26 2024 +0100
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 12 Feb 2024 20:30:06 +0100 |
parents | cce6b834635c |
children | e6defaa1e46a |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -1952,7 +1952,7 @@ static funcentry_T global_functions[] = {"did_filetype", 0, 0, 0, NULL, ret_number_bool, f_did_filetype}, {"diff", 2, 3, FEARG_1, arg3_diff, - ret_list_dict_any, f_diff}, + ret_any, f_diff}, {"diff_filler", 1, 1, FEARG_1, arg1_lnum, ret_number, f_diff_filler}, {"diff_hlID", 2, 2, FEARG_1, arg2_lnum_number,