Last active
April 16, 2020 01:08
-
-
Save yamaya/20d4cd4bf46b2d971c9724d1752fbc8c to your computer and use it in GitHub Desktop.
MacVim: imdisableを無効にした場合に日本語インライン入力がおかしい問題を修正
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit db357a103 (HEAD -> fix/my-patches, origin/fix/my-patches) | |
Author: Masayuki Yamaya <> | |
Date: Wed Apr 15 18:13:57 2020 +0900 | |
imdisableを無効にした場合に日本語インライン入力がおかしい問題を修正 | |
直接的に効果出てるのはメッセージ送信をやめた事だと思う。 | |
このメッセージが巡り巡って下線付きテキスト表示モードを中止してしまう。 | |
`-setImState:`は呼ばなくても良さげなので一緒に削除してみた。 | |
diff --git a/src/MacVim/gui_macvim.m b/src/MacVim/gui_macvim.m | |
index a165723dd..43074438f 100644 | |
--- a/src/MacVim/gui_macvim.m | |
+++ b/src/MacVim/gui_macvim.m | |
@@ -1344,13 +1344,6 @@ im_set_active(int active) | |
return; | |
} | |
#endif | |
- | |
- // Tell frontend to enable/disable IM (called e.g. when the mode changes). | |
- if (!p_imdisable) { | |
- int msgid = active ? ActivateKeyScriptMsgID : DeactivateKeyScriptMsgID; | |
- [[MMBackend sharedInstance] setImState:active]; | |
- [[MMBackend sharedInstance] queueMessage:msgid properties:nil]; | |
- } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment