mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
@@ -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
|
||||
|
Reference in New Issue
Block a user