]> granicus.if.org Git - vim/commitdiff
patch 8.1.0450: build failure without the +fold feature v8.1.0450
authorBram Moolenaar <Bram@vim.org>
Tue, 2 Oct 2018 19:48:34 +0000 (21:48 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 2 Oct 2018 19:48:34 +0000 (21:48 +0200)
Problem:    Build failure without the +fold feature.
Solution:   Add #ifdef.

src/screen.c
src/version.c

index 01428c4da6ff0ed7c847d11657b65d28006ccdd8..69f755844e625aa9383986c982231e95cf2bb1d0 100644 (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);
            }
 
index a0aa0dc716fcdc0248ddec29c4ab4dfb4afb5b5b..88b3a53592340eaaaaab5f66a67eea49cddcab88 100644 (file)
@@ -792,6 +792,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    450,
 /**/
     449,
 /**/