Skip to content

Commit d3dc062

Browse files
committed
patch 8.1.0441: build failure without command line history
Problem: Build failure without command line history. Solution: Move cmdline_init() outside of #ifdef.
1 parent 2bfddfc commit d3dc062

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/ex_getln.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,12 @@ may_add_char_to_search(int firstc, int *c, incsearch_state_T *is_state)
775775
}
776776
#endif
777777

778+
void
779+
cmdline_init(void)
780+
{
781+
vim_memset(&ccline, 0, sizeof(struct cmdline_info));
782+
}
783+
778784
/*
779785
* getcmdline() - accept a command line starting with firstc.
780786
*
@@ -7046,12 +7052,6 @@ finish_viminfo_history(vir_T *virp)
70467052
}
70477053
}
70487054

7049-
void
7050-
cmdline_init(void)
7051-
{
7052-
vim_memset(&ccline, 0, sizeof(struct cmdline_info));
7053-
}
7054-
70557055
/*
70567056
* Write history to viminfo file in "fp".
70577057
* When "merge" is TRUE merge history lines with a previously read viminfo

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,8 @@ static char *(features[]) =
794794

795795
static int included_patches[] =
796796
{ /* Add new patch number below this line */
797+
/**/
798+
441,
797799
/**/
798800
440,
799801
/**/

0 commit comments

Comments
 (0)