Mercurial > vim
comparison src/userfunc.c @ 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 | f40798bc2a50 |
children | 34f1b7d6974a |
comparison
equal
deleted
inserted
replaced
26799:df4a15fb32cf | 26800:e0ec45216f05 |
---|---|
172 */ | 172 */ |
173 static char_u * | 173 static char_u * |
174 get_function_line( | 174 get_function_line( |
175 exarg_T *eap, | 175 exarg_T *eap, |
176 char_u **line_to_free, | 176 char_u **line_to_free, |
177 getline_opt_T getline_options, | 177 int indent, |
178 int indent) | 178 getline_opt_T getline_options) |
179 { | 179 { |
180 char_u *theline; | 180 char_u *theline; |
181 | 181 |
182 if (eap->getline == NULL) | 182 if (eap->getline == NULL) |
183 theline = getcmdline(':', 0L, indent, getline_options); | 183 theline = getcmdline(':', 0L, indent, getline_options); |
240 { | 240 { |
241 while (eap != NULL && eap->getline != NULL | 241 while (eap != NULL && eap->getline != NULL |
242 && (*p == NUL || (VIM_ISWHITE(*whitep) && *p == '#'))) | 242 && (*p == NUL || (VIM_ISWHITE(*whitep) && *p == '#'))) |
243 { | 243 { |
244 // End of the line, get the next one. | 244 // End of the line, get the next one. |
245 char_u *theline = get_function_line(eap, line_to_free, 0, TRUE); | 245 char_u *theline = get_function_line(eap, line_to_free, 0, |
246 GETLINE_CONCAT_CONT); | |
246 | 247 |
247 if (theline == NULL) | 248 if (theline == NULL) |
248 break; | 249 break; |
249 whitep = (char_u *)" "; | 250 whitep = (char_u *)" "; |
250 p = skipwhite(theline); | 251 p = skipwhite(theline); |