Problem: getcmdline() argument has a misleading type.
Solution: Use the correct type, even though the value is not used.
// First time inside the ":while"/":for": get line normally.
if (cp->getline == NULL)
- line = getcmdline(c, 0L, indent, options);
+ line = getcmdline(c, 0L, indent, 0);
else
line = cp->getline(c, cp->cookie, indent, options);
if (line != NULL && store_loop_line(cp->lines_gap, line) == OK)
*/
char_u *
getcmdline(
- int firstc,
- long count, // only used for incremental search
- int indent, // indent for inside conditionals
- int do_concat UNUSED)
+ int firstc,
+ long count, // only used for incremental search
+ int indent, // indent for inside conditionals
+ getline_opt_T do_concat UNUSED)
{
return getcmdline_int(firstc, count, indent, TRUE);
}
// When using 'incsearch' the cursor may be moved to set a different search
// start position.
- cap->searchbuf = getcmdline(cap->cmdchar, cap->count1, 0, TRUE);
+ cap->searchbuf = getcmdline(cap->cmdchar, cap->count1, 0, 0);
if (cap->searchbuf == NULL)
{
/* ex_getln.c */
void cmdline_init(void);
-char_u *getcmdline(int firstc, long count, int indent, int do_concat);
+char_u *getcmdline(int firstc, long count, int indent, getline_opt_T do_concat);
char_u *getcmdline_prompt(int firstc, char_u *prompt, int attr, int xp_context, char_u *xp_arg);
int check_opt_wim(void);
int text_and_win_locked(void);
{
char_u *new_line;
- new_line = getcmdline('=', 0L, 0, TRUE);
+ new_line = getcmdline('=', 0L, 0, 0);
if (new_line == NULL)
return NUL;
if (*new_line == NUL) // use previous line
char_u *theline;
if (eap->getline == NULL)
- theline = getcmdline(':', 0L, indent, getline_options);
+ theline = getcmdline(':', 0L, indent, 0);
else
theline = eap->getline(':', eap->cookie, indent, getline_options);
if (theline != NULL)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3930,
/**/
3929,
/**/