4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When using expression folding and 'foldopen' is "undo" an undo
12 command doesn't always open the fold.
13 Solution: Save and restore the KeyTyped variable when evaluating 'foldexpr'.
18 *** ../vim-6.2.158/src/fold.c Tue Sep 2 22:25:25 2003
19 --- src/fold.c Tue Dec 16 09:47:43 2003
25 linenr_T lnum = flp->lnum + flp->off;
36 + /* KeyTyped may be reset to 0 when calling a function which invokes
37 + * do_cmdline(). To make 'foldopen' work correctly restore KeyTyped. */
38 + save_keytyped = KeyTyped;
39 n = eval_foldexpr(flp->wp->w_p_fde, &c);
40 + KeyTyped = save_keytyped;
44 /* "a1", "a2", .. : add to the fold level */
45 *** ../vim-6.2.158/src/version.c Mon Dec 29 20:27:03 2003
46 --- src/version.c Mon Dec 29 20:29:37 2003
50 { /* Add new patch number below this line */
57 ...for all the complaining I hear about the government
58 because it means we have freedom of speech.
60 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
61 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
62 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
63 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///