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

2263:print command shows multibyte character with wrong color.

Expand Messages
  • Yukihiro Nakadaira
    Jan 13, 2007
    • 0 Attachment
      :print command shows multibyte character preceded by Tab with same color
      as Tab. To reset attribute for multibyte character is forgotten.
      It seems that the current code intend to show multibyte character always
      with normal color. So I think that attribute can be omitted.

      *** message.c.orig Thu Jan 11 22:53:19 2007
      --- message.c Thu Jan 11 22:53:19 2007
      ***************
      *** 1595,1601 ****
      col += (*mb_ptr2cells)(s);
      mch_memmove(buf, s, (size_t)l);
      buf[l] = NUL;
      ! msg_puts_attr(buf, attr);
      s += l;
      continue;
      }
      --- 1595,1601 ----
      col += (*mb_ptr2cells)(s);
      mch_memmove(buf, s, (size_t)l);
      buf[l] = NUL;
      ! msg_puts(buf);
      s += l;
      continue;
      }


      And I wonder why ^I or <hex> formed special character is shown with
      normal color. Does the following line can be added?

      *** message.c.orig Thu Jan 11 22:53:19 2007
      --- message.c Thu Jan 11 22:53:19 2007
      ***************
      *** 1635,1640 ****
      --- 1635,1641 ----
      p_extra = transchar_byte(c);
      c_extra = NUL;
      c = *p_extra++;
      + attr = hl_attr(HLF_8);
      }
      else if (c == ' ' && trail != NULL && s > trail)
      {


      --
      Yukihiro Nakadaira - yukihiro.nakadaira@...
    • Show all 3 messages in this topic