4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Setting or resetting 'insertmode' in a BufEnter autocommand
12 doesn't always have immediate effect. (Nagger)
13 Solution: When 'insertmode' is set, set need_start_insertmode, when it's
14 reset set stop_insert_mode.
18 *** ../vim-6.2.096/src/option.c Thu Sep 11 21:46:06 2003
19 --- src/option.c Wed Sep 10 20:12:09 2003
23 paste_option_changed();
26 + /* when 'insertmode' is set from an autocommand need to do work here */
27 + else if ((int *)varp == &p_im)
31 + if ((State & INSERT) == 0)
32 + need_start_insertmode = TRUE;
33 + stop_insert_mode = FALSE;
37 + need_start_insertmode = FALSE;
38 + stop_insert_mode = TRUE;
39 + if (p_smd && restart_edit != 0)
40 + clear_cmdline = TRUE; /* remove "(insert)" */
45 /* when 'ignorecase' is set or reset and 'hlsearch' is set, redraw */
46 else if ((int *)varp == &p_ic && p_hls)
48 *** ../vim-6.2.096/src/version.c Fri Sep 12 20:29:23 2003
49 --- src/version.c Fri Sep 12 20:50:17 2003
53 { /* Add new patch number below this line */
59 TERRY GILLIAM PLAYED: PATSY (ARTHUR'S TRUSTY STEED), THE GREEN KNIGHT
60 SOOTHSAYER, BRIDGEKEEPER, SIR GAWAIN (THE FIRST TO BE
62 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
64 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
65 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
66 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
67 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///