Skip to content
Newer
Older
100644 80 lines (74 sloc) 2.52 KB
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 13, 2010
1 === (+2,-1) src/eval.c ===
2 @@ -355,6 +355,7 @@
34be3ea @hsitz added vim72.diff
authored Nov 11, 2010
3 {VV_NAME("operator", VAR_STRING), VV_RO},
4 {VV_NAME("searchforward", VAR_NUMBER), 0},
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
5 {VV_NAME("oldfiles", VAR_LIST), 0},
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
6 + {VV_NAME("foldhighlight", VAR_NUMBER), 0},
7 };
8
9 /* shorthand */
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
10 === (+18,-9) src/screen.c ===
11 @@ -2179,9 +2179,17 @@
12 # define RL_MEMSET(p, v, l) for (ri = 0; ri < l; ++ri) \
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
13 ScreenAttrs[off + (p) + ri] = v
14 #endif
15 + /*
16 + * 4. Compose the folded-line string with 'foldtext', if set.
17 + */
18 + text = get_foldtext(wp, lnum, lnume, foldinfo, buf);
19 +
20 + txtcol = col; /* remember where text starts */
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
21
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
22 /* Set all attributes of the 'number' column and the text */
23 - RL_MEMSET(col, hl_attr(HLF_FL), W_WIDTH(wp) - col);
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
24 + //RL_MEMSET(col, hl_attr(HLF_FL), W_WIDTH(wp) - col);
25 + RL_MEMSET(col, hl_attr(get_vim_var_nr(VV_FOLDHIGHLIGHT)), W_WIDTH(wp) - col);
26 +
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
27
28 #ifdef FEAT_SIGNS
29 /* If signs are being displayed, add two spaces. */
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
30 @@ -2196,10 +2204,11 @@
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
31 if (wp->w_p_rl)
32 /* the line number isn't reversed */
33 copy_text_attr(off + W_WIDTH(wp) - len - col,
34 - (char_u *)" ", len, hl_attr(HLF_FL));
35 + (char_u *)" ", len, hl_attr(get_vim_var_nr(VV_FOLDHIGHLIGHT)));
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
36 +
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
37 else
38 # endif
39 - copy_text_attr(off + col, (char_u *)" ", len, hl_attr(HLF_FL));
40 + copy_text_attr(off + col, (char_u *)" ", len, hl_attr(get_vim_var_nr(VV_FOLDHIGHLIGHT)));
41 col += len;
42 }
43 }
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
44 @@ -2222,10 +2231,10 @@
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
45 if (wp->w_p_rl)
46 /* the line number isn't reversed */
47 copy_text_attr(off + W_WIDTH(wp) - len - col, buf, len,
48 - hl_attr(HLF_FL));
49 + hl_attr(get_vim_var_nr(VV_FOLDHIGHLIGHT)));
50 else
51 #endif
52 - copy_text_attr(off + col, buf, len, hl_attr(HLF_FL));
53 + copy_text_attr(off + col, buf, len, hl_attr(get_vim_var_nr(VV_FOLDHIGHLIGHT)));
54 col += len;
55 }
56 }
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
57 @@ -2233,9 +2242,9 @@
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
58 /*
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
59 * 4. Compose the folded-line string with 'foldtext', if set.
60 */
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
61 - text = get_foldtext(wp, lnum, lnume, foldinfo, buf);
62 -
63 - txtcol = col; /* remember where text starts */
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
64 + //text = get_foldtext(wp, lnum, lnume, foldinfo, buf);
65 +// moved up above to heappen earlier h.s.
66 + // txtcol = col; /* remember where text starts */
67
68 /*
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
69 * 5. move the text to current_ScreenLine. Fill up with "fill_fold".
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
70 === (+3,-2) src/vim.h ===
71 @@ -1767,7 +1767,8 @@
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
72 #define VV_OP 52
73 #define VV_SEARCHFORWARD 53
764f2dd @hsitz Revised vim patch for newest version of Vim72 -- 7.2.446, changed README
authored Nov 14, 2010
74 #define VV_OLDFILES 54
75 -#define VV_LEN 55 /* number of v: vars */
76 +#define VV_FOLDHIGHLIGHT 55
77 +#define VV_LEN 56 /* number of v: vars */
34be3ea @hsitz added vim72.diff
authored Nov 12, 2010
78
79 #ifdef FEAT_CLIPBOARD
Something went wrong with that request. Please try again.