1
0
forked from aniani/vim

patch 8.0.0425: build errors when building without folding

Problem:    Build errors when building without folding.
Solution:   Add #ifdefs. (John Marriott)
This commit is contained in:
Bram Moolenaar
2017-03-05 21:18:27 +01:00
parent f7e894dfb6
commit a6c07603ca
5 changed files with 15 additions and 7 deletions

View File

@@ -2616,7 +2616,6 @@ diff_get_corresponding_line(buf_T *buf1, linenr_T lnum1)
return lnum;
}
#if defined(FEAT_FOLDING) || defined(PROTO)
/*
* For line "lnum" in the current window find the equivalent lnum in window
* "wp", compensating for inserted/deleted lines.
@@ -2656,6 +2655,5 @@ diff_lnum_win(linenr_T lnum, win_T *wp)
n = dp->df_lnum[i] + dp->df_count[i];
return n;
}
#endif
#endif /* FEAT_DIFF */