summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-10-02 21:48:34 +0200
committerBram Moolenaar <Bram@vim.org>2018-10-02 21:48:34 +0200
commit0e9deefb4fb4f99d0ab90b21ca38260be26bf5de (patch)
treed7f9a91fa3e65d2c4c2cad8fcfc352fbad847c8a /src/screen.c
parent7701f308565fdc7b5096a6597d9c3b63de0bbcec (diff)
downloadvim-git-0e9deefb4fb4f99d0ab90b21ca38260be26bf5de.tar.gz
patch 8.1.0450: build failure without the +fold featurev8.1.0450
Problem: Build failure without the +fold feature. Solution: Add #ifdef.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/screen.c b/src/screen.c
index 01428c4da..69f755844 100644
--- 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);
}