Mercurial > vim
changeset 26800:e0ec45216f05 v8.2.3928
patch 8.2.3928: heredoc test fails
Commit: https://github.com/vim/vim/commit/11ceb7d949e7c2fb36509a79dfe8df54fbdfa666
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 28 20:49:56 2021 +0000
patch 8.2.3928: heredoc test fails
Problem: Heredoc test fails.
Solution: Correct order of function arguments.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 28 Dec 2021 22:00:04 +0100 |
parents | df4a15fb32cf |
children | 030a79024913 |
files | src/userfunc.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/userfunc.c +++ b/src/userfunc.c @@ -174,8 +174,8 @@ one_function_arg( get_function_line( exarg_T *eap, char_u **line_to_free, - getline_opt_T getline_options, - int indent) + int indent, + getline_opt_T getline_options) { char_u *theline; @@ -242,7 +242,8 @@ get_function_args( && (*p == NUL || (VIM_ISWHITE(*whitep) && *p == '#'))) { // End of the line, get the next one. - char_u *theline = get_function_line(eap, line_to_free, 0, TRUE); + char_u *theline = get_function_line(eap, line_to_free, 0, + GETLINE_CONCAT_CONT); if (theline == NULL) break;