1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0450
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------
Patch 8.1.0450 (after patch 8.1.0449)
Problem: Build failure without the +fold feature.
Solution: Add #ifdef.
Files: src/screen.c
*** ../vim-8.1.0449/src/screen.c 2018-10-02 21:20:08.688088162 +0200
--- src/screen.c 2018-10-02 21:46:41.722564273 +0200
***************
*** 2174,2188 ****
{
if (wp->w_p_rnu)
{
// '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
(void)win_line(wp, lnum, srow, wp->w_height, TRUE, TRUE);
}
--- 2174,2187 ----
{
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);
else
+ #endif
(void)win_line(wp, lnum, srow, wp->w_height, TRUE, TRUE);
}
*** ../vim-8.1.0449/src/version.c 2018-10-02 21:20:08.688088162 +0200
--- src/version.c 2018-10-02 21:48:14.785774472 +0200
***************
*** 794,795 ****
--- 794,797 ----
{ /* Add new patch number below this line */
+ /**/
+ 450,
/**/
--
Amazing but true: If all the salmon caught in Canada in one year were laid
end to end across the Sahara Desert, the smell would be absolutely awful.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|