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.526 < prev    next >
Encoding:
Internet Message Format  |  2004-05-03  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.526
  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.526
  11. Problem:    When s:lang is "ja" the Japanese menus are not used.
  12. Solution:   Add 'encoding' to the language when there is no charset.
  13. Files:        runtime/menu.vim
  14.  
  15.  
  16. *** ../vim-6.2.525/runtime/menu.vim    Mon Mar  1 16:43:34 2004
  17. --- runtime/menu.vim    Tue May  4 15:57:24 2004
  18. ***************
  19. *** 2,8 ****
  20.   " You can also use this as a start for your own set of menus.
  21.   "
  22.   " Maintainer:    Bram Moolenaar <Bram@vim.org>
  23. ! " Last Change:    2004 Mar 01
  24.   
  25.   " Note that ":an" (short for ":anoremenu") is often used to make a menu work
  26.   " in all modes and avoid side effects from mappings defined by the user.
  27. --- 2,8 ----
  28.   " You can also use this as a start for your own set of menus.
  29.   "
  30.   " Maintainer:    Bram Moolenaar <Bram@vim.org>
  31. ! " Last Change:    2004 May 04
  32.   
  33.   " Note that ":an" (short for ":anoremenu") is often used to make a menu work
  34.   " in all modes and avoid side effects from mappings defined by the user.
  35. ***************
  36. *** 30,35 ****
  37. --- 30,40 ----
  38.     endif
  39.     " A language name must be at least two characters, don't accept "C"
  40.     if strlen(s:lang) > 1
  41. +     " When the language does not include the charset add 'encoding'
  42. +     if s:lang =~ '^\a\a$\|^\a\a_\a\a$'
  43. +       let s:lang = s:lang . '.' . &enc
  44. +     endif
  45.       " We always use a lowercase name.
  46.       " Change "iso-8859" to "iso_8859" and "iso8859" to "iso_8859", some
  47.       " systems appear to use this.
  48. *** ../vim-6.2.525/src/version.c    Tue May  4 19:23:13 2004
  49. --- src/version.c    Tue May  4 21:12:08 2004
  50. ***************
  51. *** 639,640 ****
  52. --- 642,645 ----
  53.   {   /* Add new patch number below this line */
  54. + /**/
  55. +     526,
  56.   /**/
  57.  
  58. -- 
  59. hundred-and-one symptoms of being an internet addict:
  60. 107. When using your phone you forget that you don't have to use your
  61.      keyboard.
  62.  
  63.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  64. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  65. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  66.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  67.