]>
Commit | Line | Data |
---|---|---|
59ab3540 AM |
1 | To: vim_dev@googlegroups.com |
2 | Subject: Patch 7.3.327 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.3.327 | |
11 | Problem: When jumping to a help tag a closed fold doesn't open. | |
12 | Solution: Save and restore KeyTyped. (Yasuhiro Matsumoto) | |
13 | Files: src/ex_cmds.c | |
14 | ||
15 | ||
16 | *** ../vim-7.3.326/src/ex_cmds.c 2011-09-14 14:43:21.000000000 +0200 | |
17 | --- src/ex_cmds.c 2011-09-30 17:24:03.000000000 +0200 | |
18 | *************** | |
19 | *** 5508,5513 **** | |
20 | --- 5508,5516 ---- | |
21 | int len; | |
22 | char_u *lang; | |
23 | #endif | |
24 | + #ifdef FEAT_FOLDING | |
25 | + int old_KeyTyped = KeyTyped; | |
26 | + #endif | |
27 | ||
28 | if (eap != NULL) | |
29 | { | |
30 | *************** | |
31 | *** 5671,5676 **** | |
32 | --- 5674,5685 ---- | |
33 | if (!p_im) | |
34 | restart_edit = 0; /* don't want insert mode in help file */ | |
35 | ||
36 | + #ifdef FEAT_FOLDING | |
37 | + /* Restore KeyTyped, setting 'filetype=help' may reset it. | |
38 | + * It is needed for do_tag top open folds under the cursor. */ | |
39 | + KeyTyped = old_KeyTyped; | |
40 | + #endif | |
41 | + | |
42 | if (tag != NULL) | |
43 | do_tag(tag, DT_HELP, 1, FALSE, TRUE); | |
44 | ||
45 | *** ../vim-7.3.326/src/version.c 2011-09-30 16:56:00.000000000 +0200 | |
46 | --- src/version.c 2011-09-30 17:24:17.000000000 +0200 | |
47 | *************** | |
48 | *** 711,712 **** | |
49 | --- 711,714 ---- | |
50 | { /* Add new patch number below this line */ | |
51 | + /**/ | |
52 | + 327, | |
53 | /**/ | |
54 | ||
55 | -- | |
56 | Q. What happens to programmers when they die? | |
57 | A: MS-Windows programmers are reinstalled. C++ programmers become undefined, | |
58 | anyone who refers to them will die as well. Java programmers reincarnate | |
59 | after being garbage collected. | |
60 | ||
61 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
62 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
63 | \\\ an exciting new programming language -- http://www.Zimbu.org /// | |
64 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |