diff --git a/honoka/plugins/cannaconversion.cpp b/honoka/plugins/cannaconversion.cpp index 510445c..8a9469b 100644 --- a/honoka/plugins/cannaconversion.cpp +++ b/honoka/plugins/cannaconversion.cpp @@ -44,7 +44,7 @@ m_iconv.set_encoding ("EUC-JP"); pos = 0; RkInitialize("/var/lib/canna/dic"); - context = RkCreateContext(); + context = 0; ready = false; } @@ -58,7 +58,7 @@ } void CannaConversion::reset(){ - RkEndBun(context,0); + RkEndBun(context,1); return; } @@ -108,6 +108,7 @@ bool CannaConversion::select(int p) { if (p < convResult[pos].count()) { convResult[pos].pos = p; + RkXfer(context,convResult[pos].pos); return true; } return false;