]>
Commit | Line | Data |
---|---|---|
f3c378e8 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.0.158 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.0.158 | |
11 | Problem: In a C file with ":set foldmethod=syntax", typing {<CR> on the | |
12 | last line results in the cursor being in a closed fold. (Gautam | |
13 | Iyer) | |
14 | Solution: Open fold after inserting a new line. | |
15 | Files: src/edit.c | |
16 | ||
17 | ||
18 | *** ../vim-7.0.157/src/edit.c Tue Oct 17 13:39:36 2006 | |
19 | --- src/edit.c Wed Nov 1 21:17:19 2006 | |
20 | *************** | |
21 | *** 9204,9209 **** | |
22 | --- 9204,9213 ---- | |
23 | #ifdef FEAT_CINDENT | |
24 | can_cindent = TRUE; | |
25 | #endif | |
26 | + #ifdef FEAT_FOLDING | |
27 | + /* When inserting a line the cursor line must never be in a closed fold. */ | |
28 | + foldOpenCursor(); | |
29 | + #endif | |
30 | ||
31 | return (!i); | |
32 | } | |
33 | *** ../vim-7.0.157/src/version.c Wed Nov 1 18:33:43 2006 | |
34 | --- src/version.c Wed Nov 1 21:21:22 2006 | |
35 | *************** | |
36 | *** 668,669 **** | |
37 | --- 668,671 ---- | |
38 | { /* Add new patch number below this line */ | |
39 | + /**/ | |
40 | + 158, | |
41 | /**/ | |
42 | ||
43 | -- | |
44 | hundred-and-one symptoms of being an internet addict: | |
45 | 142. You dream about creating the world's greatest web site. | |
46 | ||
47 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
48 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
49 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
50 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |