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

Patch 7.3.110

Expand Messages
  • Bram Moolenaar
    Patch 7.3.110 Problem: The nbsp item in listchars isn t used for :list . Solution: Make it work. (Christian Brabandt) Files: src/message.c ...
    Message 1 of 3 , Feb 1, 2011
    • 0 Attachment
      Patch 7.3.110
      Problem: The "nbsp" item in 'listchars' isn't used for ":list".
      Solution: Make it work. (Christian Brabandt)
      Files: src/message.c


      *** ../vim-7.3.109/src/message.c 2011-01-17 20:08:03.000000000 +0100
      --- src/message.c 2011-02-01 17:06:21.000000000 +0100
      ***************
      *** 1637,1644 ****
      else if (has_mbyte && (l = (*mb_ptr2len)(s)) > 1)
      {
      col += (*mb_ptr2cells)(s);
      ! mch_memmove(buf, s, (size_t)l);
      ! buf[l] = NUL;
      msg_puts(buf);
      s += l;
      continue;
      --- 1637,1652 ----
      else if (has_mbyte && (l = (*mb_ptr2len)(s)) > 1)
      {
      col += (*mb_ptr2cells)(s);
      ! if (lcs_nbsp != NUL && list && mb_ptr2char(s) == 160)
      ! {
      ! mb_char2bytes(lcs_nbsp, buf);
      ! buf[(*mb_ptr2len)(buf)] = NUL;
      ! }
      ! else
      ! {
      ! mch_memmove(buf, s, (size_t)l);
      ! buf[l] = NUL;
      ! }
      msg_puts(buf);
      s += l;
      continue;
      ***************
      *** 1664,1669 ****
      --- 1672,1682 ----
      attr = hl_attr(HLF_8);
      }
      }
      + else if (c == 160 && list && lcs_nbsp != NUL)
      + {
      + c = lcs_nbsp;
      + attr = hl_attr(HLF_8);
      + }
      else if (c == NUL && list && lcs_eol != NUL)
      {
      p_extra = (char_u *)"";
      *** ../vim-7.3.109/src/version.c 2011-02-01 13:59:44.000000000 +0100
      --- src/version.c 2011-02-01 17:08:31.000000000 +0100
      ***************
      *** 716,717 ****
      --- 716,719 ----
      { /* Add new patch number below this line */
      + /**/
      + 110,
      /**/

      --
      hundred-and-one symptoms of being an internet addict:
      176. You lie, even to user-friends, about how long you were online yesterday.

      /// 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
    • Ben Fritz
      ... I think the :help list and :help :list entries also need an update. The entry for list is better but neither make it clear that the output is
      Message 2 of 3 , Feb 1, 2011
      • 0 Attachment
        On Feb 1, 10:12 am, Bram Moolenaar <B...@...> wrote:
        > Patch 7.3.110
        > Problem:    The "nbsp" item in 'listchars' isn't used for ":list".
        > Solution:   Make it work. (Christian Brabandt)
        > Files:      src/message.c
        >

        I think the :help 'list' and :help :list entries also need an update.
        The entry for 'list' is better but neither make it clear that the
        output is completely configurable by 'listchars' and that more than
        tabs are affected.

        --
        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
      • Tony Mechelynck
        ... Both of them at least *mention* listchars , which, in addition, appears just below list in the help, so it is not very hard to see how much list and
        Message 3 of 3 , Feb 2, 2011
        • 0 Attachment
          On 01/02/11 18:27, Ben Fritz wrote:
          >
          >
          > On Feb 1, 10:12 am, Bram Moolenaar<B...@...> wrote:
          >> Patch 7.3.110
          >> Problem: The "nbsp" item in 'listchars' isn't used for ":list".
          >> Solution: Make it work. (Christian Brabandt)
          >> Files: src/message.c
          >>
          >
          > I think the :help 'list' and :help :list entries also need an update.
          > The entry for 'list' is better but neither make it clear that the
          > output is completely configurable by 'listchars' and that more than
          > tabs are affected.
          >

          Both of them at least *mention* 'listchars', which, in addition, appears
          just below 'list' in the help, so it is not very hard to see how much
          'list' and :list can be customized.


          Best regards,
          Tony.
          --
          Xerox never comes up with anything original.

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