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

Fwd: for gvim-7.2 swallowing space from IM

Expand Messages
  • Huang Peng
    Hi vim hackers, I forward this problem from vim mail list to here. Please help to view the patch attached with this mail. Thanks. ... From: ÓàîÚì¿
    Message 1 of 2 , Aug 30, 2008
    • 0 Attachment
      Hi vim hackers,
      I forward this problem from vim mail list to here. Please help to view
      the patch attached with this mail. Thanks.

      ---------- Forwarded message ----------
      From: 余钰炜 <acev...@...>
      Date: Aug 25, 8:14 am
      Subject: for gvim-7.2 swallowing space from IM
      To: vim_dev


      Hi, the gvim-7.2 will swallow the space char which commit to gvim from
      asynchronous Input Method Engine, like IBus (a recent IME still under
      developing).

      In IBus, The keyval is processed in one loop, but the commit string
      may
      be committed to gvim in the following loop.
      In this case, the if clause on the line 4246 of mbyte.c which do not
      clear the
      "xim_expected_char" before "return imresult" .
      This will cause gvim to ignore the latter commited
      "xim_expected_char".
      So we need to clear "xim_expected_char"
      before the "return imresult" to avoid the latter commit string ( e.g.
      space ) to be always ignored after that loop.

      the patch I submitted via the attachment, add " xim_expected_char =
      NUL;
      " on line 4271, just before "return imresult" to fix this bug.

      I under Gentoo Linux, vim-core-7.2, vim-7.2, gvim-7.2

      Best wishes!

      Yu Yuwei
      Aug 20, 2008

      035_all_vim-7.2-space.patch.gz
      < 1KViewDownload

      signature.asc
      < 1KViewDownload

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_multibyte" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.