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

Re: a 'foldmarker' problem with mb

Expand Messages
  • Bram Moolenaar
    ... Thanks, I ll include this in Vim 7. We can use mb_ptr_adv() to avoid the #ifdefs. -- hundred-and-one symptoms of being an internet addict: 225. You sign
    Message 1 of 2 , Feb 1, 2006
    • 0 Attachment
      Taro Muraoka wrote:

      > Hello Bram and the list.
      >
      > I have received a report from a Japanese vim user. It describes about a
      > 'foldmarker' problem under multibyte environment. Overview of the
      > problem is that fold don't be created when a character which be able to
      > appear as trail byte of multibyte-character, is used in 'foldmarker'.
      >
      > Setting example to represent the problem is:
      > set foldmethod=marker foldmarker={,}
      > (Character '}' appears as trail byte of multibyte-character in CP932
      > encoding.)
      >
      > I wrote attached patch to fix this problem. Please check it.

      Thanks, I'll include this in Vim 7. We can use mb_ptr_adv() to avoid
      the #ifdefs.

      --
      hundred-and-one symptoms of being an internet addict:
      225. You sign up for free subscriptions for all the computer magazines

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ download, build and distribute -- http://www.A-A-P.org ///
      \\\ help me help AIDS victims -- http://www.ICCF.nl ///
    Your message has been successfully submitted and would be delivered to recipients shortly.