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

[vim-multibyte] multibyte in tooltip

Expand Messages
  • Taro Muraoka
    Hello, vim-multibyte. Multibyte char have trail in tooltip is broken. So I made a patch. ... Taro Muraoka Problem: Multibyte char
    Message 1 of 1 , Mar 12, 2000
    • 0 Attachment
      Hello, vim-multibyte.

      Multibyte char have trail '\' in tooltip is broken. So I made a patch.
      ----
      Taro Muraoka <koron@...>


      Problem: Multibyte char in tooltip is broken.
      Solution: Consider multibyte char in replace_termcodes.
      Files: src/term.c

      *** src.orig/term.c Sun Jan 02 22:00:24 2000
      --- src/term.c Sun Mar 12 17:34:52 2000
      ***************
      *** 3893,3898 ****
      --- 3893,3907 ----
      break;
      }
      }
      +
      + #ifdef MULTI_BYTE
      + /*
      + * Skip multibyte char correctly
      + */
      + if (is_dbcs && IsLeadByte(*src) && src[1] != NUL)
      + result[dlen++] = *src++;
      + #endif
      +
      result[dlen++] = *src++;
      }
      result[dlen] = NUL;
    Your message has been successfully submitted and would be delivered to recipients shortly.