]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.097
- manpaged md5 fix
[packages/vim.git] / 6.2.097
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.097
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 6.2.097
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.
15 Files:      src/option.c
16
17
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
20 ***************
21 *** 5994,5999 ****
22 --- 5994,6018 ----
23         paste_option_changed();
24       }
25   
26 +     /* when 'insertmode' is set from an autocommand need to do work here */
27 +     else if ((int *)varp == &p_im)
28 +     {
29 +       if (p_im)
30 +       {
31 +           if ((State & INSERT) == 0)
32 +               need_start_insertmode = TRUE;
33 +           stop_insert_mode = FALSE;
34 +       }
35 +       else
36 +       {
37 +           need_start_insertmode = FALSE;
38 +           stop_insert_mode = TRUE;
39 +           if (p_smd && restart_edit != 0)
40 +               clear_cmdline = TRUE;   /* remove "(insert)" */
41 +           restart_edit = 0;
42 +       }
43 +     }
44
45       /* when 'ignorecase' is set or reset and 'hlsearch' is set, redraw */
46       else if ((int *)varp == &p_ic && p_hls)
47       {
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
50 ***************
51 *** 632,633 ****
52 --- 632,635 ----
53   {   /* Add new patch number below this line */
54 + /**/
55 +     97,
56   /**/
57
58 -- 
59 TERRY GILLIAM PLAYED: PATSY (ARTHUR'S TRUSTY STEED), THE GREEN KNIGHT
60                       SOOTHSAYER, BRIDGEKEEPER, SIR GAWAIN (THE FIRST TO BE
61                       KILLED BY THE RABBIT)
62                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
63
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  ///
This page took 0.035716 seconds and 3 git commands to generate.