2009/4/25 Kazuki Sakamoto:
>
> I have fixed im_get_status.
> It called GetScriptManagerVariable Carbon API from Vim, so I moved
> this into MacVim as well.
>
> This fix doesn't affect in default. It will work with "set noimdisable".

Hi Sakamoto,

Thanks for the patch.

It seems to be incomplete somehow though.  There is a new function
called im_set_control() which is never called from anywhere so the
imControl boolean inside the text view helper is always false.
Moreover, what is the thought behind this?  It seems strange to send a
message to set the im state every time you press a key -- in
particular the way it is now the sendImState could be called multiple
times for every key press since keyDown may itself call
doCommandBySelector/insertText/performKeyEquivalent (and even vice
versa).  It would be better to send a message with the new IM state
when it changes only (I don't know if the Carbon API allows this
though...I do know that there is a 10.5 only API which does but we
need 10.4 compatibility).

Please look over these issues and submit a new patch when you have one.

Thanks,
Björn

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to