From f17ae41890b16121f9498c5bb2336137feab781d Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 22 Jun 2018 13:24:47 +0800 Subject: update selectCandidate method --- src/PYPLuaConverterCandidates.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/PYPLuaConverterCandidates.cc') diff --git a/src/PYPLuaConverterCandidates.cc b/src/PYPLuaConverterCandidates.cc index dcd7390..e47ee71 100644 --- a/src/PYPLuaConverterCandidates.cc +++ b/src/PYPLuaConverterCandidates.cc @@ -76,7 +76,7 @@ LuaConverterCandidates::processCandidates (std::vector & cand return TRUE; } -SelectCandidateAction +int LuaConverterCandidates::selectCandidate (EnhancedCandidate & enhanced) { guint id = enhanced.m_candidate_id; @@ -88,8 +88,7 @@ LuaConverterCandidates::selectCandidate (EnhancedCandidate & enhanced) if (G_UNLIKELY (id >= m_candidates.size ())) return SELECT_CANDIDATE_ALREADY_HANDLED; - SelectCandidateAction action = SELECT_CANDIDATE_ALREADY_HANDLED; - action = m_editor->selectCandidateInternal (m_candidates[id]); + int action = m_editor->selectCandidateInternal (m_candidates[id]); if (SELECT_CANDIDATE_MODIFY_IN_PLACE_AND_COMMIT == action) { ibus_engine_plugin_call (m_lua_plugin, converter, -- cgit