Comment #1 on issue 1021 by jhuangjiahua: No effect of space entering under VIm 7.2 using ibus-wubi or ibus-pinyin
http://code.google.com/p/ibus/issues/detail?id=1021

这是 gvim 的 bug,
对于同步的输入法如 xim、ibus-sunpinyin 等没有问题,
但是对于非同步的输入法如 ibus-pinyin、ibus-wubi 就会吃掉空格,
(曾经某些版本 ibus-pinyin 似乎用过同步的,所以曾进 gvim 里空格没问题过)

这是我用的 gvim 7.3 空格补丁
{{{
diff -r 496aa6744333 src/mbyte.c
--- a/src/mbyte.c       Sat Jul 31 00:33:52 2010 +0800
+++ b/src/mbyte.c       Sat Jul 31 00:40:36 2010 +0800
@@ -5058,6 +5058,7 @@
                /* We had a keypad key, and XIM tried to thieve it */
                return FALSE;

+           xim_expected_char = NUL;
            /* Normal processing */
            return imresult;
        }
}}}


�� Fedora 可以先用这补丁重新编译 gvim 7.2/7.3,
不过最好还是跟 Fedora 和 vim 提交 bugs


Attachments:
        gvim_fix_swallowing_space_from_ime.patch  317 bytes

--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en

回复