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.1.235 < prev    next >
Encoding:
Internet Message Format  |  2002-10-26  |  2.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.235
  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.1.235 (depends on 6.1.223)
  11. Problem:    'iminsert' is changed from 1 to 2 when leaving Insert mode. (Peter
  12.         Valach)
  13. Solution:   Check "State" before resetting it to NORMAL.
  14. Files:        src/edit.c
  15.  
  16.  
  17. *** ../vim61.234/src/edit.c    Mon Oct 14 20:18:19 2002
  18. --- src/edit.c    Mon Oct 21 20:33:38 2002
  19. ***************
  20. *** 5868,5873 ****
  21. --- 5868,5882 ----
  22.           --curwin->w_cursor.col;
  23.       }
  24.   
  25. + #ifdef USE_IM_CONTROL
  26. +     /* Disable IM to allow typing English directly for Normal mode commands.
  27. +      * When ":lmap" is enabled don't change 'iminsert' (IM can be enabled as
  28. +      * well). */
  29. +     if (!(State & LANGMAP))
  30. +     im_save_status(&curbuf->b_p_iminsert);
  31. +     im_set_active(FALSE);
  32. + #endif
  33.       State = NORMAL;
  34.       /* need to position cursor again (e.g. when on a TAB ) */
  35.       changed_cline_bef_curs();
  36. ***************
  37. *** 5877,5891 ****
  38.   #endif
  39.   #ifdef CURSOR_SHAPE
  40.       ui_cursor_shape();        /* may show different cursor shape */
  41. - #endif
  42. - #ifdef USE_IM_CONTROL
  43. -     /* Disable IM to allow typing English directly for Normal mode commands.
  44. -      * When ":lmap" is enabled don't change 'iminsert' (IM can be enabled as
  45. -      * well). */
  46. -     if (!(State & LANGMAP))
  47. -     im_save_status(&curbuf->b_p_iminsert);
  48. -     im_set_active(FALSE);
  49.   #endif
  50.   
  51.       /*
  52. --- 5886,5891 ----
  53. *** ../vim61.234/src/version.c    Sun Oct 27 14:38:00 2002
  54. --- src/version.c    Sun Oct 27 14:40:03 2002
  55. ***************
  56. *** 608,609 ****
  57. --- 608,611 ----
  58.   {   /* Add new patch number below this line */
  59. + /**/
  60. +     235,
  61.   /**/
  62.  
  63. -- 
  64. CUSTOMER:     Well, can you hang around a couple of minutes?  He won't be
  65.               long.
  66. MORTICIAN:    Naaah, I got to go on to Robinson's -- they've lost nine today.
  67. CUSTOMER:     Well, when is your next round?
  68. MORTICIAN:    Thursday.
  69. DEAD PERSON:  I think I'll go for a walk.
  70.                                   The Quest for the Holy Grail (Monty Python)
  71.  
  72.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  73. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  74. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  75.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  76.