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

Re: patch for euc-jp half char

Expand Messages
  • Yasuhiro Matsumoto
    ... I had mistake again. I may need taking a rest. X-( ... *************** *** 3765,3771 **** #ifdef FEAT_MBYTE ... && MB_BYTE2LEN(ScreenLines[off_from]) 1 -
    Message 1 of 4 , Jul 11, 2001
    • 0 Attachment
      Yasuhiro Matsumoto wrote:
      >
      >Hello all
      >
      >if euc-jp half char is at last column,
      > char_needs_redraw don't work correctly.
      >
      >thanks.

      I had mistake again.
      I may need taking a rest. X-(

      *** src.org/screen.c Thu Jun 21 05:05:08 2001
      --- src/screen.c Thu Jul 12 04:03:59 2001
      ***************
      *** 3765,3771 ****
      #ifdef FEAT_MBYTE
      || (enc_dbcs != 0
      && MB_BYTE2LEN(ScreenLines[off_from]) > 1
      - && len > 1
      && (enc_dbcs == DBCS_JPNU && ScreenLines[off_from] == 0x8e
      ? ScreenLines2[off_from] != ScreenLines2[off_to]
      : ScreenLines[off_from + 1] != ScreenLines[off_to + 1]))
      --- 3786,3791 ----


      Yasuhiro Matsumoto
    • Bram Moolenaar
      Yasuhiro - ... && MB_BYTE2LEN(ScreenLines[off_from]) 1 && (enc_dbcs == DBCS_JPNU && ScreenLines[off_from] == 0x8e ? ScreenLines2[off_from] !=
      Message 2 of 4 , Jul 11, 2001
      • 0 Attachment
        Yasuhiro -

        > >if euc-jp half char is at last column,
        > > char_needs_redraw don't work correctly.
        >
        > I had mistake again.
        > I may need taking a rest. X-(
        >
        > *** src.org/screen.c Thu Jun 21 05:05:08 2001
        > --- src/screen.c Thu Jul 12 04:03:59 2001
        > ***************
        > *** 3765,3771 ****
        > #ifdef FEAT_MBYTE
        > || (enc_dbcs != 0
        > && MB_BYTE2LEN(ScreenLines[off_from]) > 1
        > - && len > 1
        > && (enc_dbcs == DBCS_JPNU && ScreenLines[off_from] == 0x8e
        > ? ScreenLines2[off_from] != ScreenLines2[off_to]
        > : ScreenLines[off_from + 1] != ScreenLines[off_to + 1]))

        Shouldn't the check for (len > 1) be moved to the end? Like this:

        || (enc_dbcs != 0
        && MB_BYTE2LEN(ScreenLines[off_from]) > 1
        && (enc_dbcs == DBCS_JPNU && ScreenLines[off_from] == 0x8e
        ? ScreenLines2[off_from] != ScreenLines2[off_to]
        : (len > 1 && ScreenLines[off_from + 1]
        != ScreenLines[off_to + 1])))

        - Bram

        --
        hundred-and-one symptoms of being an internet addict:
        186. You overstay in the office so you can have more time surfing the net.

        /// 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 ///
      • Yasuhiro Matsumoto
        ... It should check! Thanks for your correct. YM
        Message 3 of 4 , Jul 12, 2001
        • 0 Attachment
          Bram Moolenaar wrote:
          >Shouldn't the check for (len > 1) be moved to the end? Like this:
          >
          > || (enc_dbcs != 0
          > && MB_BYTE2LEN(ScreenLines[off_from]) > 1
          > && (enc_dbcs == DBCS_JPNU && ScreenLines[off_from] == 0x8e
          > ? ScreenLines2[off_from] != ScreenLines2[off_to]
          > : (len > 1 && ScreenLines[off_from + 1]
          > != ScreenLines[off_to + 1])))

          It should check!
          Thanks for your correct.

          YM
        Your message has been successfully submitted and would be delivered to recipients shortly.