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

vim breaks in a multi-byte's syntax

Expand Messages
  • Yasuhiro Matsumoto
    hello bram. vim breaks in a multi-byte s syntax. this happend when there is syntaxed text and set window width to 1. below is a patch for this. ...
    Message 1 of 2 , Dec 11, 2001
      hello bram.

      vim breaks in a multi-byte's syntax.
      this happend when there is syntaxed text and set window width to 1.
      below is a patch for this.

      *** screen.old Wed Dec 12 10:38:33 2001
      --- screen.c Wed Dec 12 10:27:55 2001
      ***************
      *** 3281,3294 ****
      if (extra_check)
      {
      #ifdef FEAT_SYN_HL
      ! if (has_syntax)
      {
      /* Get the syntax attribute for the character. If there
      * is an error, disable syntax highlighting. */
      save_did_emsg = did_emsg;
      did_emsg = FALSE;

      - v = (long)(ptr - line);
      syntax_attr = get_syntax_attr((colnr_T)v - 1);

      if (did_emsg)
      --- 3290,3303 ----
      if (extra_check)
      {
      #ifdef FEAT_SYN_HL
      ! v = (long)(ptr - line);
      ! if (has_syntax && v > 0)
      {
      /* Get the syntax attribute for the character. If there
      * is an error, disable syntax highlighting. */
      save_did_emsg = did_emsg;
      did_emsg = FALSE;

      syntax_attr = get_syntax_attr((colnr_T)v - 1);

      if (did_emsg)
      --
      Yasuhiro


      _________________________________________________________________
      MSN Photos is the easiest way to share and print your photos:
      http://photos.msn.com/support/worldwide.aspx
    • Bram Moolenaar
      ... Thanks. I ll add this later. -- Never overestimate a man s ability to underestimate a woman. /// Bram Moolenaar -- Bram@moolenaar.net --
      Message 2 of 2 , Dec 12, 2001
        Yasuhiro Matsumoto wrote:

        > vim breaks in a multi-byte's syntax.
        > this happend when there is syntaxed text and set window width to 1.
        > below is a patch for this.

        Thanks. I'll add this later.

        --
        Never overestimate a man's ability to underestimate a woman.

        /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
        ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim )))
        \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
      Your message has been successfully submitted and would be delivered to recipients shortly.