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

Re: 'list', :list, and 'listchars'

Expand Messages
  • Bram Moolenaar
    ... Thanks. ... The value is used only once, thus you can put the mb_ptr2len() right there. -- If Microsoft would build a car... ... You d have to press the
    Message 1 of 5 , Feb 1, 2011
      Christian Brabandt wrote:

      > >> Here is a patch, that adds nbsp support to :list command. I leave out
      > >> conceal, as I don't think this makes sense here:
      > > That only works when 'enc' is a multi-byte encoding. It should also
      > > work for latin1.
      > >
      >
      > Upps forgotten. I somehow thought, this is only relevant for multibyte
      > encodings. Here is an updated patch.

      Thanks.

      > > Please insert spaces around "=".
      >
      > Done.
      >
      > > You don't actually need the "ll" variable.
      >
      > I don't? But I need the width of the lcs_nbsp char for the output buffer
      > and the width of the non-breaking char in the line to advance the pointer
      > in the line.

      The value is used only once, thus you can put the mb_ptr2len() right
      there.

      --
      If Microsoft would build a car...
      ... You'd have to press the "Start" button to turn the engine off.

      /// 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
    • Christian Brabandt
      Hi Bram! ... Ah yes of course. regards, Christian -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text
      Message 2 of 5 , Feb 1, 2011
        Hi Bram!

        On Di, 01 Feb 2011, Bram Moolenaar wrote:

        > The value is used only once, thus you can put the mb_ptr2len() right
        > there.

        Ah yes of course.

        regards,
        Christian
        --

        --
        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.