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

Re: Vim 6.0d - mbyte - cannot input trail CSI

Expand Messages
  • Taro Muraoka
    I try this. It works correctly! Thank you, Bram! ... Taro Muraoka koron@tka.att.ne.jp ... From: Bram Moolenaar To: Taro Muraoka
    Message 1 of 3 , Jul 31, 2000
    • 0 Attachment
      I try this. It works correctly!
      Thank you, Bram!
      ----
      Taro Muraoka koron@...


      ----- Original Message -----
      From: "Bram Moolenaar" <Bram@...>
      To: "Taro Muraoka" <koron@...>
      Cc: <vim-dev@...>
      Sent: Tuesday, August 01, 2000 5:46 AM
      Subject: Re: Vim 6.0d - mbyte - cannot input trail CSI


      >
      > Taro Muraoka wrote:
      >
      > > Vim 6.0d has a problem about input a multibyte character that the trail code
      > > is CSI (0x9B). There are superfluous two characters (KS_EXTRA and KE_CSI)
      > > inserted, when I type via IME. I fix with this patch.
      >
      > I see the problem. However, in your solution you enable mapping to get the
      > CSI translated into a K_SPECIAL. That's dangerous, a mapping could kick in
      > here. Please try this alternative patch:
      >
      > *** getchar.c~ Sun Jul 30 16:56:30 2000
      > --- getchar.c Mon Jul 31 21:47:57 2000
      > ***************
      > *** 1173,1178 ****
      > --- 1173,1187 ----
      > c2 = vgetorpeek(TRUE);
      > c = vgetorpeek(TRUE);
      > }
      > + #ifdef FEAT_GUI
      > + else if (gui.in_use && buf[i] == CSI)
      > + {
      > + /* Must be a CSI - KS_EXTRA - KE_CSI sequence, which
      > + * represents a CSI (0x9B). */
      > + c2 = vgetorpeek(TRUE);
      > + c = vgetorpeek(TRUE);
      > + }
      > + #endif
      > }
      > --no_mapping;
      > c = mb_ptr2char(buf);
      >
      > --
      > hundred-and-one symptoms of being an internet addict:
      > 44. Your friends no longer send you e-mail...they just log on to your IRC
      > channel.
      >
      > /// Bram Moolenaar Bram@... http://www.moolenaar.net \\\
      > \\\ Vim: http://www.vim.org ICCF Holland: http://iccf-holland.org ///
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.