0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.0450: build failure without the +fold feature

Problem:    Build failure without the +fold feature.
Solution:   Add #ifdef.
This commit is contained in:
Bram Moolenaar
2018-10-02 21:48:34 +02:00
parent 7701f30856
commit 0e9deefb4f
2 changed files with 4 additions and 3 deletions

View File

@@ -2174,15 +2174,14 @@ win_update(win_T *wp)
{
if (wp->w_p_rnu)
{
#ifdef FEAT_FOLDING
// 'relativenumber' set: The text doesn't need to be drawn, but
// the number column nearly always does.
fold_count = foldedCount(wp, lnum, &win_foldinfo);
if (fold_count != 0)
{
fold_line(wp, fold_count, &win_foldinfo, lnum, row);
--fold_count;
}
else
#endif
(void)win_line(wp, lnum, srow, wp->w_height, TRUE, TRUE);
}

View File

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