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.087 < prev    next >
Encoding:
Internet Message Format  |  2002-06-05  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.087
  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.087
  11. Problem:    A thesaurus with Japanese characters has problems with characters
  12.         in different word classes.
  13. Solution:   Only separate words with single-byte non-word characters.
  14.         (Muraoka Taro)
  15. Files:        src/edit.c
  16.  
  17.  
  18. *** ../vim61.086/src/edit.c    Fri May 17 19:29:08 2002
  19. --- src/edit.c    Thu Jun  6 20:33:36 2002
  20. ***************
  21. *** 2043,2049 ****
  22.                   wstart = ptr;
  23.   
  24.                   /* Find end of the word and add it. */
  25. !                 ptr = find_word_end(ptr);
  26.                   add_r = ins_compl_add_infercase(wstart,
  27.                       (int)(ptr - wstart), files[i], dir, 0);
  28.                   }
  29. --- 2043,2064 ----
  30.                   wstart = ptr;
  31.   
  32.                   /* Find end of the word and add it. */
  33. ! #ifdef FEAT_MBYTE
  34. !                 if (has_mbyte)
  35. !                     /* Japanese words may have characters in
  36. !                      * different classes, only separate words
  37. !                      * with single-byte non-word characters. */
  38. !                     while (*ptr != NUL)
  39. !                     {
  40. !                     int l = (*mb_ptr2len_check)(ptr);
  41. !                     if (l < 2 && !vim_iswordc(*ptr))
  42. !                         break;
  43. !                     ptr += l;
  44. !                     }
  45. !                 else
  46. ! #endif
  47. !                     ptr = find_word_end(ptr);
  48.                   add_r = ins_compl_add_infercase(wstart,
  49.                       (int)(ptr - wstart), files[i], dir, 0);
  50.                   }
  51. *** ../vim61.086/src/version.c    Tue Jun  4 20:01:34 2002
  52. --- src/version.c    Thu Jun  6 20:33:53 2002
  53. ***************
  54. *** 608,609 ****
  55. --- 608,611 ----
  56.   {   /* Add new patch number below this line */
  57. + /**/
  58. +     87,
  59.   /**/
  60.  
  61. -- 
  62. hundred-and-one symptoms of being an internet addict:
  63. 112. You are amazed that anyone uses a phone without a modem on it...let
  64.      alone hear actual voices.
  65.  
  66.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  67. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  68. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  69.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  70.