Loading ...
Sorry, an error occurred while loading the content.
 

[vim-multibyte] Re: May I post some pathes?

Expand Messages
  • Bram Moolenaar
    ... I would welcome sending small patches to vim-multibyte. This gives subscribers a chance to say something about them, which helps me to decide if they
    Message 1 of 2 , Jan 15, 2000
      Taro Muraoka wrote:

      > I made some patches for multibyte.
      > May I post these patches to here?
      >
      > list of pathes
      > -Regular expression search and substitute. (16K)
      > -Simple search in search.c. (2K)
      > -Special multibyte character cannot be used in menu. (1K)

      I would welcome sending small patches to vim-multibyte. This gives
      subscribers a chance to say something about them, which helps me to decide if
      they should be included.

      Your patch for multibyte characters in a menu is probably the one that
      resulted in patch 5.6a.028:

      *** ../vim-5.6a.27/src/gui_w32.c Wed Jan 12 21:20:04 2000
      --- src/gui_w32.c Fri Jan 14 20:14:43 2000
      ***************
      *** 5014,5019 ****
      --- 5014,5032 ----
      {
      int nChar = 0;

      + #ifdef MULTI_BYTE
      + int len = lstrlen(lpAnsiIn) + 1; /* include NUL character */
      + int i;
      +
      + nChar = MultiByteToWideChar(
      + CP_OEMCP,
      + MB_PRECOMPOSED,
      + lpAnsiIn, len,
      + lpWCStr, len);
      + for (i = 0; i < nChar; ++i)
      + if (lpWCStr[i] == (WORD)'\t') /* replace tabs with spaces */
      + lpWCStr[i] = (WORD)' ';
      + #else
      do
      {
      if (*lpAnsiIn == '\t')
      ***************
      *** 5022,5027 ****
      --- 5035,5041 ----
      *lpWCStr++ = (WORD)*lpAnsiIn;
      nChar++;
      } while (*lpAnsiIn++);
      + #endif

      return nChar;
      }
      *** ../vim-5.6a.27/src/version.c Fri Jan 14 22:49:13 2000
      --- src/version.c Fri Jan 14 22:48:51 2000
      ***************
      *** 420,421 ****
      --- 420,423 ----
      { /* Add new patch number below this line */
      + /**/
      + 28,
      /**/

      --
      hundred-and-one symptoms of being an internet addict:
      181. You make up words that go with the "happy tune" your modem makes
      while dialing your ISP.

      --/-/---- Bram Moolenaar ---- Bram@... ---- Bram@... ---\-\--
      \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /
    Your message has been successfully submitted and would be delivered to recipients shortly.