diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2023-04-23 20:26:59 -0500 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-11 22:53:39 +0200 |
commit | 5fee11114975b7405b7ccd3ee8758e54bf559760 (patch) | |
tree | ae15baf50b45d4c5ad76714641b03c006b1ac70d /src/evalfunc.c | |
parent | 422b9dcbfadcd5c1dfad982f9782563915398430 (diff) |
patch 9.0.1686: undotree() only works for the current bufferv9.0.1686
Problem: undotree() only works for the current buffer
Solution: Add an optional "buffer number" parameter to undotree(). If
omitted, use the current buffer for backwards compatibility.
closes: #4001
closes: #12292
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Devin J. Pohly <djpohly@gmail.com>
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 8970ac7937..0903fa8e60 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -2798,7 +2798,7 @@ static funcentry_T global_functions[] = ret_string, f_typename}, {"undofile", 1, 1, FEARG_1, arg1_string, ret_string, f_undofile}, - {"undotree", 0, 0, 0, NULL, + {"undotree", 0, 1, FEARG_1, arg1_buffer, ret_dict_any, f_undotree}, {"uniq", 1, 3, FEARG_1, arg13_sortuniq, ret_first_arg, f_uniq}, |