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.418 < prev    next >
Encoding:
Internet Message Format  |  2004-03-29  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.418
  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.418
  11. Problem:    Using ":nnoremap <F12> :echo "cheese" and ":cabbr cheese xxx":
  12.         when pressing <F12> still uses the abbreviation. (Hari Krishna)
  13. Solution:   Also apply "noremap" to abbreviations.
  14. Files:        src/getchar.c
  15.  
  16.  
  17. *** ../vim-6.2.417/src/getchar.c    Fri Mar 26 22:02:11 2004
  18. --- src/getchar.c    Mon Mar 29 22:18:46 2004
  19. ***************
  20. *** 76,81 ****
  21. --- 76,83 ----
  22.    */
  23.   static mapblock_T    *first_abbr = NULL; /* first entry in abbrlist */
  24.   
  25. + static int        KeyNoremap = FALSE; /* remapping disabled */
  26.   /*
  27.    * variables used by vgetorpeek() and flush_buffers()
  28.    *
  29. ***************
  30. *** 2118,2123 ****
  31. --- 2120,2127 ----
  32.                       gotchars(typebuf.tb_buf
  33.                                + typebuf.tb_off, 1);
  34.                       }
  35. +                     KeyNoremap = (typebuf.tb_noremap[
  36. +                         typebuf.tb_off] != REMAP_YES);
  37.                       del_typebuf(1, 0);
  38.                   }
  39.                   break;        /* got character, break for loop */
  40. ***************
  41. *** 3903,3908 ****
  42. --- 3907,3914 ----
  43.       int        vim_abbr;
  44.   
  45.       if (typebuf.tb_no_abbr_cnt)    /* abbrev. are not recursive */
  46. +     return FALSE;
  47. +     if (KeyNoremap)        /* no remapping implies no abbreviation */
  48.       return FALSE;
  49.   
  50.       /*
  51. *** ../vim-6.2.417/src/version.c    Tue Mar 30 21:58:19 2004
  52. --- src/version.c    Tue Mar 30 21:59:55 2004
  53. ***************
  54. *** 639,640 ****
  55. --- 639,642 ----
  56.   {   /* Add new patch number below this line */
  57. + /**/
  58. +     418,
  59.   /**/
  60.  
  61. -- 
  62. Some of the well know MS-Windows errors:
  63.     EHUH        Unexpected error
  64.     EUSER        User error, not our fault!
  65.     EGOD        Horrible problem, god knows what has happened
  66.     EERR        Errornous error: nothing wrong
  67.  
  68.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  69. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  70. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  71.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  72.