changeset 14877:8b6124732e8f v8.1.0450

patch 8.1.0450: build failure without the +fold feature commit https://github.com/vim/vim/commit/0e9deefb4fb4f99d0ab90b21ca38260be26bf5de Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 2 21:48:34 2018 +0200 patch 8.1.0450: build failure without the +fold feature Problem: Build failure without the +fold feature. Solution: Add #ifdef.
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Oct 2018 22:00:06 +0200
parents a21ea4f54109
children 3adfdb610695
files src/screen.c src/version.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -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);
 	    }
 
--- a/src/version.c
+++ b/src/version.c
@@ -793,6 +793,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    450,
+/**/
     449,
 /**/
     448,