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.0.133 < prev    next >
Encoding:
Internet Message Format  |  2002-01-14  |  2.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.133
  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.0.133
  11. Problem:    When opening another buffer while 'keymap' is set and 'iminsert'
  12.         is zero, 'iminsert' is set to one unexpectedly. (Igor Goldenberg)
  13. Solution:   Don't set 'iminsert' as a side effect of defining a ":lmap"
  14.         mapping.  Only do that when 'keymap' is set.
  15. Files:        src/getchar.c, src/option.c
  16.  
  17.  
  18. *** ../vim60.132/src/getchar.c    Fri Nov  2 16:29:44 2001
  19. --- src/getchar.c    Tue Jan 15 14:13:21 2002
  20. ***************
  21. *** 2916,2934 ****
  22.       if (!haskey || (maptype != 1 && !hasarg))
  23.       msg_start();
  24.   
  25. -     /* When definding a ":lmap" switch on using them. */
  26. -     if (hasarg && maptype != 1 && mode == LANGMAP)
  27. -     {
  28. -     curbuf->b_p_iminsert = B_IMODE_LMAP;
  29. -     if (curbuf->b_p_imsearch != B_IMODE_USE_INSERT)
  30. -         curbuf->b_p_imsearch = B_IMODE_LMAP;
  31. -     set_iminsert_global();
  32. -     set_imsearch_global();
  33. - #ifdef FEAT_WINDOWS
  34. -     status_redraw_curbuf();
  35. - #endif
  36. -     }
  37.   #ifdef FEAT_LOCALMAP
  38.       /*
  39.        * Check if a new local mapping wasn't already defined globally.
  40. --- 2916,2921 ----
  41. *** ../vim60.132/src/option.c    Tue Jan 15 13:56:47 2002
  42. --- src/option.c    Tue Jan 15 14:24:07 2002
  43. ***************
  44. *** 4503,4508 ****
  45. --- 4503,4521 ----
  46.       {
  47.       /* load or unload key mapping tables */
  48.       errmsg = keymap_init();
  49. +     /* When successfully installed a new keymap switch on using it. */
  50. +     if (*curbuf->b_p_keymap != NUL && errmsg == NULL)
  51. +     {
  52. +         curbuf->b_p_iminsert = B_IMODE_LMAP;
  53. +         if (curbuf->b_p_imsearch != B_IMODE_USE_INSERT)
  54. +         curbuf->b_p_imsearch = B_IMODE_LMAP;
  55. +         set_iminsert_global();
  56. +         set_imsearch_global();
  57. + # ifdef FEAT_WINDOWS
  58. +         status_redraw_curbuf();
  59. + # endif
  60. +     }
  61.       }
  62.   #endif
  63.   
  64. *** ../vim60.132/src/version.c    Tue Jan 15 13:56:47 2002
  65. --- src/version.c    Tue Jan 15 14:19:25 2002
  66. ***************
  67. *** 608,609 ****
  68. --- 608,611 ----
  69.   {   /* Add new patch number below this line */
  70. + /**/
  71. +     133,
  72.   /**/
  73.  
  74. -- 
  75. An alien life briefly visits earth.  Just before departing it leaves a
  76. message in the dust on the back of a white van.  The world is shocked
  77. and wants to know what it means.  After months of studies the worlds
  78. best linguistic scientists are able to decipher the message: "Wash me!".
  79.  
  80.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  81. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  82.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  83.