summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PYPPinyinEngine.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PYPPinyinEngine.cc b/src/PYPPinyinEngine.cc
index 04cdd3a..16366f2 100644
--- a/src/PYPPinyinEngine.cc
+++ b/src/PYPPinyinEngine.cc
@@ -77,7 +77,8 @@ PinyinEngine::PinyinEngine (IBusEngine *engine)
#ifdef IBUS_BUILD_LUA_EXTENSION
m_props.setLuaPlugin (m_lua_plugin);
- m_props.appendLuaConverter ();
+ if (PinyinConfig::instance ().luaExtension ())
+ m_props.appendLuaConverter ();
#endif
m_editors[MODE_PUNCT].reset