home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.2.097 < prev    next >
Encoding:
Internet Message Format  |  2003-10-13  |  2.0 KB

  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.       /* when 'ignorecase' is set or reset and 'hlsearch' is set, redraw */
  45.       else if ((int *)varp == &p_ic && p_hls)
  46.       {
  47. *** ../vim-6.2.096/src/version.c    Fri Sep 12 20:29:23 2003
  48. --- src/version.c    Fri Sep 12 20:50:17 2003
  49. ***************
  50. *** 632,633 ****
  51. --- 632,635 ----
  52.   {   /* Add new patch number below this line */
  53. + /**/
  54. +     97,
  55.   /**/
  56.  
  57. -- 
  58. TERRY GILLIAM PLAYED: PATSY (ARTHUR'S TRUSTY STEED), THE GREEN KNIGHT
  59.                       SOOTHSAYER, BRIDGEKEEPER, SIR GAWAIN (THE FIRST TO BE
  60.                       KILLED BY THE RABBIT)
  61.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  62.  
  63.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  64. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  65. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  66.  \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///
  67.