0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.1.0441: build failure without command line history

Problem:    Build failure without command line history.
Solution:   Move cmdline_init() outside of #ifdef.
This commit is contained in:
Bram Moolenaar
2018-09-30 17:45:30 +02:00
parent 2bfddfc508
commit d3dc062160
2 changed files with 8 additions and 6 deletions

View File

@@ -775,6 +775,12 @@ may_add_char_to_search(int firstc, int *c, incsearch_state_T *is_state)
}
#endif
void
cmdline_init(void)
{
vim_memset(&ccline, 0, sizeof(struct cmdline_info));
}
/*
* getcmdline() - accept a command line starting with firstc.
*
@@ -7046,12 +7052,6 @@ finish_viminfo_history(vir_T *virp)
}
}
void
cmdline_init(void)
{
vim_memset(&ccline, 0, sizeof(struct cmdline_info));
}
/*
* Write history to viminfo file in "fp".
* When "merge" is TRUE merge history lines with a previously read viminfo

View File

@@ -794,6 +794,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
441,
/**/
440,
/**/