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

Re: Re : tr() problem ?

Expand Messages
  • Bram Moolenaar
    ... Thanks Ben! -- ARTHUR: Be quiet! DENNIS: Well you can t expect to wield supreme executive power just cause some watery tart threw a sword at you!
    Message 1 of 12 , Mar 2, 2011
    • 0 Attachment
      Ben Schmidt wrote:

      > On 11/02/11 11:02 PM, Dimitar DIMITROV wrote:
      > > I just tested:
      > >
      > > :com! Test ec '♛'
      > > then
      > > :Test prints ♀<fd>Q
      > > :ec '♛' prints '♛'
      > >
      > > So the problem is :com related not tr() as previously thought
      >
      > Attached is the fix.
      >
      > K_SPECIAL is not a multibyte character code, so vim_strchr is not an
      > appropriate way to search for it. A bytewise search of the string is
      > needed.

      Thanks Ben!

      --
      ARTHUR: Be quiet!
      DENNIS: Well you can't expect to wield supreme executive power just 'cause
      some watery tart threw a sword at you!
      ARTHUR: Shut up!
      DENNIS: I mean, if I went around sayin' I was an empereror just because some
      moistened bint had lobbed a scimitar at me they'd put me away!
      The Quest for the Holy Grail (Monty Python)

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.